Beispiel #1
0
 private void sendWindowToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (frmSend.instantiations == 0)
     {
         fSend = new frmSend(); // creates a new frmSend
         fSend.Show();
     }
 }
Beispiel #2
0
 private void sendWindwoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (frmSend.instantiations == 0)
     {
         fSend = new frmSend(); //Creates a new window
         fSend.Show();
     }
     //add code to have a popup
 }
Beispiel #3
0
 private void sendWindowToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (frmSend.Instantiations >= 1)
     {
         MessageBox.Show("Maximum Send Windows have been reached");
     }
     else
     {
         fsend = new frmSend();
         fsend.Show();
     }
 }