private void miAddShop_Click(object sender, RoutedEventArgs e) { var editorF = new EditorFormShop(); editorF.Owner = this; editorF.ShowDialog(); this.Show(); }
private void ShopEdit_Click(object sender, RoutedEventArgs e) { var editorF = new EditorFormShop(((KeyValuePair <Guid, Shop>)((MenuItem)sender).DataContext).Value); editorF.Owner = this; editorF.ShowDialog(); this.Show(); }
private void ShopEdit_Click(object sender, RoutedEventArgs e) { var editorF = new EditorFormShop(((KeyValuePair<Guid, Shop>)((MenuItem)sender).DataContext).Value); editorF.Owner = this; editorF.ShowDialog(); this.Show(); }