private void newToolStripMenuItem_Click(object sender, EventArgs e) { label4.Hide(); ListUsers newMDIChild = new ListUsers(); newMDIChild.MdiParent = this; newMDIChild.Show(); }
private void SetDataSources() { ListUsers frm = new ListUsers(); comboBox1.DataSource = frm.GetAllUsers(); // UserRepo userRepo = new UserRepo("users.txt"); // comboBox1.DataSource = userRepo.GetAll(); }
private void SetDataSources() { tasksBindingSource1.DataSource = this.GetAllTasks(); dataGridView1.DataSource = tasksBindingSource1; ListUsers frm = new ListUsers(); DataGridViewComboBoxColumn columnCreatedyBy = (DataGridViewComboBoxColumn)dataGridView1.Columns[4]; columnCreatedyBy.DataSource = frm.GetAllUsers(); DataGridViewComboBoxColumn columnExecutive = (DataGridViewComboBoxColumn)dataGridView1.Columns[5]; columnExecutive.DataSource = frm.GetAllUsers(); }
private void SetDataSources() { ListUsers frm = new ListUsers(); comboBox1.DataSource = frm.GetAllUsers(); }