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

            newMDIChild.MdiParent = this;
            newMDIChild.Show();
        }
Esempio n. 2
0
        private void SetDataSources()
        {
            ListUsers frm = new ListUsers();

            comboBox1.DataSource = frm.GetAllUsers();

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

            comboBox1.DataSource = frm.GetAllUsers();
        }