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