Ejemplo n.º 1
0
 private void btnAddSupplier_Click(object sender, EventArgs e)
 {
     using (M_Suppilier ms = new M_Suppilier())
     {
         ms.ShowDialog();
     }
 }
Ejemplo n.º 2
0
 private void bunifuFlatButton1_Click(object sender, EventArgs e)
 {
     foreach (Form form in Application.OpenForms)
     {
         if (form.GetType().Name == "M_Suppilier")
         {
             MetroMessageBox.Show(this, "Form is already opened", "System Message!", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
             return;
         }
     }
     using (M_Suppilier ms = new M_Suppilier())
     {
         ms.ShowDialog();
     }
 }