示例#1
0
        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            label4.Hide();
            ListUsers newMDIChild = new ListUsers();

            newMDIChild.MdiParent = this;
            newMDIChild.Show();
        }
示例#2
0
        private void SetDataSources()
        {
            ListUsers frm = new ListUsers();

            comboBox1.DataSource = frm.GetAllUsers();

            // UserRepo userRepo = new UserRepo("users.txt");
            // comboBox1.DataSource = userRepo.GetAll();
        }
示例#3
0
        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();
        }
示例#4
0
        private void SetDataSources()
        {
            ListUsers frm = new ListUsers();

            comboBox1.DataSource = frm.GetAllUsers();
        }