//弹出编辑界面 private void EditBtn_Click(object sender, RoutedEventArgs e) { editType = 0; Edit ed = new Edit(); ed.Owner = this.Parent as Window; ed.Show(); this.Close(); }
private void MBAddBtn_Click(object sender, RoutedEventArgs e) { Tools.editType = 1; addType = 1; Edit ed = new Edit(); ed.Owner = this; ed.Show(); }