コード例 #1
0
        private void OnLiquidClassNewMenuItemClick(object sender, RoutedEventArgs e)
        {
            LiquidClass       liquidClass = new LiquidClass();
            LiquidClassEditor editor      = new LiquidClassEditor(AddInfo);

            editor.DataContext = liquidClass;
            this.AddTabItem(editor);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }