Example #1
0
        void Add()
        {
            Person.FrmAddPerson newForm = new Person.FrmAddPerson();
            newForm._Ref     = 0;
            newForm._FormMod = Enums.enmFormMod.Yeni;
            //yeniForm.MdiParent = frmAnaMenu.ActiveForm;
            newForm.MdiParent = FrmIKMain.ActiveForm;
            newForm.Show();

            if (newForm.DialogResult == DialogResult.OK)
            {
                FillData();
            }
        }
Example #2
0
 void Show()
 {
     if (grdList.RowCount > 0)
     {
         if (grdList.FocusedRowHandle != -1)
         {
             Person.FrmAddPerson newForm = new Person.FrmAddPerson();
             newForm._Ref      = int.Parse(grdList.GetFocusedRowCellValue("Ref").ToString());
             newForm._MenuNo   = this._MenuNo;
             newForm._FormMod  = Enums.enmFormMod.Goruntule;
             newForm.MdiParent = FrmIKMain.ActiveForm;
             newForm.Show();
         }
     }
 }