public Form2(Admin a) { count = 0; admin = a; LO = o.read(); LC = c.read(); LCT = cT.read(); InitializeComponent(); DefaultImage = pictureBox1.Image; for (int i = 0; i < LO.Count; i++) { comboBox6.Items.Add(LO[i].O_id); } for (int i = 0; i < LC.Count; i++) { selectCmbo.Items.Add(LC[i].C_id); } for (int i = 0; i < LO.Count; i++) { if (LO[i].assigNum < 10) { officerCmbo.Items.Add(LO[i].O_id); } } for (int i = 0; i < LCT.Count; i++) { typeCmbo.Items.Add(LCT[i].T_name); comboBox9.Items.Add(LCT[i].T_name); listBox1.Items.Add(LCT[i].T_name); } }
public Form3(Officer o) { officer = o; count = 0; LO = officer.read(); LC = c.read(); LCT = cT.read(); InitializeComponent(); for (int i = 0; i < LC.Count; i++) { if (LC[i].C_offId == officer.O_id && LC[i].C_Stat == true) { comboBox2.Items.Add(LC[i].C_id); selectCmbo.Items.Add(LC[i].C_id); } } for (int i = 0; i < LCT.Count; i++) { typeCmbo.Items.Add(LCT[i].T_name); } }