コード例 #1
0
 public frmEmployee(long pLongID)
 {
     InitializeComponent();
     _employee = new Employee(pLongID);
     mnuSave.Enabled = true; mnuDelete.Enabled = true; mnuWindow.Enabled = true;
     displayRecord();
 }
コード例 #2
0
 public frm_Employee(long pLongID, Boolean pblnCanWrite)
 {
     InitializeComponent();
     _employee = new Employee(pLongID);
     _validate = new Validate();
     tsi_save.Enabled = pblnCanWrite;
     displayRecord();
 }
コード例 #3
0
 public frm_Employee(Boolean pblnCanWrite)
 {
     InitializeComponent();
     this.Text = "New " + this.Text;
     _employee = new Employee();
     _validate = new Validate();
     tsi_save.Enabled = pblnCanWrite;
 }
コード例 #4
0
 public frmEmployee(long pLongID, Boolean pBlnReadOnly)
 {
     InitializeComponent();
     _employee = new Employee(pLongID);
     _blnReadOnly = pBlnReadOnly;
     displayRecord();
     OrganizeMenuButtons();
 }
コード例 #5
0
 public frmEmployee()
 {
     InitializeComponent();
     _employee = new Employee();
 }
コード例 #6
0
 /// <summary>       
 /// Description: Handles all the events called by the menu strip
 /// </summary>
 private void vts_Employee_Search_Click(object sender, EventArgs e)
 {
     if (!isDenied("frm_Employee"))
     {
         Employee _employee = new Employee();
         frm_Search _search = new frm_Search(_employee.employeeDataset, "Employee", canWrite("frm_Employee"));
         _search.MdiParent = this;
         _search.Show();
     }
     else
         MessageBox.Show("Access denied. Contact network administrator to gain access");
 }
コード例 #7
0
 public frmEmployee()
 {
     InitializeComponent();
     _employee = new Employee();
     _blnReadOnly = false;
 }