Beispiel #1
0
        void InfoFormClosed(object sender, FormClosedEventArgs args)
        {
            // detach the handler
            fI.FormClosed -= InfoFormClosed;

            // let GC collect it (and this way we can tell if it's closed)
            fI = null;
        }
Beispiel #2
0
        private void buttonInfo_Click(object sender, EventArgs e)
        {
            // if the form is not closed, show it
            if (fI == null || fI.IsDisposed)
            {
                fI = new info();

                // attach the handler
                fI.FormClosed += InfoFormClosed;
            }

            // show it
            fI.Show();
        }
Beispiel #3
0
 private void buttonInfo_Click(object sender, EventArgs e)
 {
     fI.label1Version.Text = this.Version;
     if (fI.Visible)
     {
         fI.Hide();
     }
     else
     {
         if (fI.IsDisposed)
         {
             fI = new info();
         }
         fI.Show();
     }
 }
Beispiel #4
0
 private void buttonInfo_Click(object sender, EventArgs e)
 {
     fI.label1Version.Text = this.Version;
     if (fI.Visible)
         fI.Hide();
     else
     {
         if (fI.IsDisposed)
             fI = new info();
         fI.Show();
     }
 }
Beispiel #5
0
        void InfoFormClosed(object sender, FormClosedEventArgs args)
        {
            // detach the handler
            fI.FormClosed -= InfoFormClosed;

            // let GC collect it (and this way we can tell if it's closed)
            fI = null;
        }
Beispiel #6
0
        private void buttonInfo_Click(object sender, EventArgs e)
        {
            // if the form is not closed, show it
            if (fI == null || fI.IsDisposed)
            {
                fI = new info();

                // attach the handler
                fI.FormClosed += InfoFormClosed;
            }

            // show it
            fI.Show();
        }