-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStudent Project 3 notes
51 lines (48 loc) · 1.28 KB
/
Student Project 3 notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
if (lstCommonFiles.Items.IndexOf(txtAddNew.Text) < 0
{
lstCommonItems.Item.ADd(TxtAddNew.Text.Trim());
txtAddNew.Text = "";
btnAdd = false;
}
else
{
MessageBox.Show
}
public partial class frmAdd : Form
{
frmMain myParent = null;
public frmAdd(frmMain frmMainForm)
{
InitializeComponent();
myParent = frmMainForm;
}
frmAdd myAddForm = new frmAdd(this);
myAddForm.ShowDialog();
myAddForm.DisplayText = "Current Dataset Tables";
object[] objTemp = new objec[cboTables.Items.Count[];
myAddForm.listItems = objTemp;
FlashLabel(lblInvalidCharacters)
Private void FlashLabel(Label lbl)
{
for(int i = 0; i < 2; i++)
{
lblVisible = false;
Applications.DoEvent();
myParent.Wait(.4f);
Public object [] lstitems
lstCommonItems.Items.CopyTo(objRetVal);
char[] cInvalid = > < / (Space) [ ] = ,
//btnCancel has a dialog result property of cancel!
public object[] ListItems
{
get
{
object[] objRetVal = new object[lstCommonItems.Items.Count];
lstCommonItems.Items.CopyTo(objRetVal, 0);
return objRetVal;
}
set
{
lstCommonItems.Items.AddRange(value);
}
}