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