private void OnLiquidClassNewMenuItemClick(object sender, RoutedEventArgs e) { LiquidClass liquidClass = new LiquidClass(); LiquidClassEditor editor = new LiquidClassEditor(AddInfo); editor.DataContext = liquidClass; this.AddTabItem(editor); }
private void OnLiquidClassDuplicateMenuItemClick(object sender, RoutedEventArgs e) { LiquidClass liquidClass = ((LiquidClass)this.lb_liquidclass.SelectedItem).Clone() as LiquidClass; LiquidClassEditor editor = new LiquidClassEditor(AddInfo); editor.DataContext = liquidClass; this.AddTabItem(editor); }
private void OnLiquidClassEditMenuItemClick(object sender, RoutedEventArgs e) { LiquidClass selectedLC = (LiquidClass)this.lb_liquidclass.SelectedItem; if (this.ActivateEditingTab(selectedLC.TypeName)) { return; } LiquidClassEditor editor = new LiquidClassEditor(AddInfo); editor.DataContext = selectedLC; this.AddTabItem(editor); }