示例#1
0
        private void btnAddNewEditor_Click(object sender, EventArgs e)
        {
            NewEmployee _newEmployee = new NewEmployee("btnAddNewEditor");
            _newEmployee.ShowDialog(this);

            DataTable _editors = loConfiguration.getEmployeesByType("Editor");
            cboEditors.DataSource = _editors;
            cboEditors.ValueMember = "EmployeeId";
            cboEditors.DisplayMember = "Initials";
            gridEditors.Cols["Initials"].Editor = cboEditors;
        }
示例#2
0
 private void tsbNew_Click(object sender, EventArgs e)
 {
     NewEmployee _newEmployee = new NewEmployee();
     _newEmployee.ShowDialog(this);
 }
示例#3
0
        private void btnAddNewAuthor_Click(object sender, EventArgs e)
        {
            NewEmployee _newEmployee = new NewEmployee("btnAddNewAuthor");
            _newEmployee.ShowDialog(this);

            DataTable _authors = loConfiguration.getEmployeesByType("Reporter");
            cboAuthors.DataSource = _authors;
            cboAuthors.ValueMember = "EmployeeId";
            cboAuthors.DisplayMember = "Name";
            gridAuthors.Cols["Name"].Editor = cboAuthors;
        }