コード例 #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;
        }
コード例 #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();
        }
コード例 #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();
     }
 }
コード例 #4
0
ファイル: MainWindow.cs プロジェクト: Tiavor/GW2Launcher-v2
 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();
     }
 }
コード例 #5
0
ファイル: Form1.cs プロジェクト: Tiavor/GW2Launcher-v1
        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;
        }
コード例 #6
0
ファイル: Form1.cs プロジェクト: Tiavor/GW2Launcher-v1
        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();
        }