private void OrderEdit_Click(object sender, RoutedEventArgs e) { var editorF = new EditorFormOrder((Order)((MenuItem)sender).DataContext); editorF.Owner = this; editorF.ShowDialog(); this.Show(); }
private void miAddOrder_Click(object sender, RoutedEventArgs e) { var editorF = new EditorFormOrder(); editorF.Owner = this; editorF.ShowDialog(); this.Show(); }