예제 #1
0
 /// <summary>
 /// Calls frmVoucherWiseProductSearch form
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void voucherWiseProductSearchToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         frmVoucherWiseProductSearch objVoucherWiseProductSearch = new frmVoucherWiseProductSearch();
         frmVoucherWiseProductSearch open = Application.OpenForms["frmVoucherWiseProductSearch"] as frmVoucherWiseProductSearch;
         if (open == null)
         {
             objVoucherWiseProductSearch.MdiParent = this;
             objVoucherWiseProductSearch.Show();
         }
         else
         {
             open.Activate();
             if (open.WindowState == FormWindowState.Minimized)
             {
                 open.WindowState = FormWindowState.Normal;
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("MDI 153: " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #2
0
 /// <summary>
 /// Calls frmVoucherWiseProductSearch form
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void voucherWiseProductSearchToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         if (CheckUserPrivilege.PrivilegeCheck(PublicVariables._decCurrentUserId, "frmVoucherWiseProductSearch", "View"))
         {
             frmVoucherWiseProductSearch objVoucherWiseProductSearch = new frmVoucherWiseProductSearch();
             frmVoucherWiseProductSearch open = Application.OpenForms["frmVoucherWiseProductSearch"] as frmVoucherWiseProductSearch;
             if (open == null)
             {
                 objVoucherWiseProductSearch.MdiParent = this;
                 objVoucherWiseProductSearch.Show();
             }
             else
             {
                 open.Activate();
                 if (open.WindowState == FormWindowState.Minimized)
                 {
                     open.WindowState = FormWindowState.Normal;
                 }
             }
         }
         else
         {
             Messages.NoPrivillageMessage();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("MDI 153: " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }