Exemplo n.º 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;
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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;
        }
Exemplo n.º 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();
        }