コード例 #1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            var cat = new CategoriesAddUpdateFrm((cbxCategory.SelectedItem as Categories).CategoryId);

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