コード例 #1
0
 private void katagoriAraToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CategorySearchFrm == null || CategorySearchFrm.IsDisposed == true)
     {
         CloseForm();
         CategorySearchFrm = new CategorySearchFrm();
         FormBoyutlandir(CategorySearchFrm.Width, CategorySearchFrm.Height);
         CategorySearchFrm.MdiParent   = this;
         CategorySearchFrm.FormClosed += CategorySearchFrm_FormClosed;
         CategorySearchFrm.WindowState = FormWindowState.Maximized;
         CategorySearchFrm.Show();
     }
     else
     {
         CategorySearchFrm.Activate();
     }
 }
コード例 #2
0
 private void CategorySearchFrm_FormClosed(object sender, FormClosedEventArgs e)
 {
     CategorySearchFrm = null;
 }