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

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

            comboBox1.DataSource = frm.GetAllUsers();

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

            comboBox1.DataSource = frm.GetAllUsers();
        }