示例#1
0
 private void miDataBrowseOrders_MouseUp(object sender, MouseEventArgs e)
 {
     DataBrowseForms.frmBrowseOrders browseOrdersForm = new DataBrowseForms.frmBrowseOrders();
     browseOrdersForm.MdiParent = this;
     browseOrdersForm.WindowState = FormWindowState.Maximized;
     browseOrdersForm.Show();
 }
示例#2
0
 /***
  * Event that is created on double click on menu item Data in submenu Browse
  * */
 private void miDataBrowseOrders_MouseUp(object sender, MouseEventArgs e)
 {
     //initializing a form which browses orders
     DataBrowseForms.frmBrowseOrders ordersFrm = new DataBrowseForms.frmBrowseOrders();
     ordersFrm.MdiParent = this; //we tell form ordersFrm that its MdiParent is this form.
     ordersFrm.WindowState = FormWindowState.Maximized; //setup window state
     ordersFrm.Show(); //displaying form as mdi child
 }