public void ShowRegionEditorView(object o) { if (Api.ActivateTab("id_name_database_dictionary")) return; RegionsEditorView _regionEditorView = new RegionsEditorView(); _regionEditorView.DataContext = new RegionsEditorViewModel(); _regionEditorView.Name = "id_name_database_dictionary_regions"; _regionEditorView.ToolTip = "Справочник: Регионы"; Api.AddTabItem(_regionEditorView); System.Windows.MessageBox.Show("xxx"); }
public void ShowRegionEditorView(object o) { if (Api.ActivateTab("id_name_database_dictionary")) { return; } RegionsEditorView _regionEditorView = new RegionsEditorView(); _regionEditorView.DataContext = new RegionsEditorViewModel(); _regionEditorView.Name = "id_name_database_dictionary_regions"; _regionEditorView.ToolTip = "Справочник: Регионы"; Api.AddTabItem(_regionEditorView); System.Windows.MessageBox.Show("xxx"); }