Example #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     FormTypeAdd tmp = new FormTypeAdd();
     tmp.Owner = this.Owner;
     this.Dispose();
     tmp.ShowDialog();
 }
Example #2
0
 private void miTypeAdd_Click(object sender, EventArgs e)
 {
     FormTypeAdd tmp = new FormTypeAdd();
     tmp.Owner = FormMain.ActiveForm;
     tmp.ShowDialog();
 }