Beispiel #1
0
 private void frmLayout_Load(object sender, EventArgs e)
 {
     mceAdd    = new MCEAdd();
     pmEployee = new PMEmployee();
     panelContents.SetBounds(0, 97, 1364, 652);
     this.Controls.Add(panelContents);
     panelPreference.Controls.Add(pmEployee);
     panelContents.Controls.Add(mceAdd);
 }
Beispiel #2
0
 private void toolEmployee_Click(object sender, EventArgs e)
 {
     panelPreference.Controls.Clear();
     panelContents.Controls.Clear();
     mceAdd    = new MCEAdd();
     pmEployee = new PMEmployee();
     panelPreference.Controls.Add(pmEployee);
     panelContents.Controls.Add(mceAdd);
 }
Beispiel #3
0
 private void frmLayout_Load(object sender, EventArgs e)
 {
     this.MaximizeBox = false;
     try
     {
         mceAdd    = new MCEAdd();
         pmEployee = new PMEmployee();
         panelPreference.Anchor = AnchorStyles.Top;
         //panelPreference.Dock = DockStyle.Top;
         panelPreference.SetBounds(0, 24, 1364, 73);
         panelContents.SetBounds(0, 97, 1364, 652);
         this.Controls.Add(panelContents);
         this.Controls.Add(panelPreference);
         panelPreference.Controls.Add(pmEployee);
         panelContents.Controls.Add(mceAdd);
     }
     catch
     {
         frmConnectSQL frm = new frmConnectSQL();
         frm.ShowDialog();
         this.Close();
     }
 }
Beispiel #4
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     mceAdd = new MCEAdd();
     frmLayout.panelContents.Controls.Clear();
     frmLayout.panelContents.Controls.Add(mceAdd);
 }