public EditTabViewModel(bool isDesignTime = false) { if (isDesignTime) { return; } Name = Strings.EditTab; #region Keys AddColumnsKey = "AddColumns"; DuplicateColumnsKey = "DuplicateColumns"; RemoveColumnsKey = "RemoveColumns"; CopyColumnsKey = "CopyColumns"; CutColumnsKey = "CutColumns"; PasteColumnsKey = "PasteColumns"; #endregion #region Commands AddColumnsCommand = new DefaultCommand(AddColumns); DuplicateColumnsCommand = new DefaultCommand(DuplicateColumns); RemoveColumnsCommand = new DefaultCommand(RemoveColumns); CopyColumnsCommand = new DefaultCommand(CopyColumns); CutColumnsCommand = new DefaultCommand(CutColumns); PasteColumnsCommand = new DefaultCommand(PasteColumns); #endregion }
public EditMenuViewModel(bool isDesignTime = false) { if (isDesignTime) { return; } Name = Strings.EditMenu; #region Names AddColumnsName = Strings.EditMenu_AddColumns; DuplicateColumnsName = Strings.EditMenu_DuplicateColumns; RemoveColumnsName = Strings.EditMenu_RemoveColumns; CopyColumnsName = Strings.EditMenu_CopyColumns; CutColumnsName = Strings.EditMenu_CutColumns; PasteColumnsName = Strings.EditMenu_PasteColumns; #endregion #region Commands AddColumnsCommand = new DefaultCommand(AddColumns); DuplicateColumnsCommand = new DefaultCommand(DuplicateColumns); RemoveColumnsCommand = new DefaultCommand(RemoveColumns); CopyColumnsCommand = new DefaultCommand(CopyColumns); CutColumnsCommand = new DefaultCommand(CutColumns); PasteColumnsCommand = new DefaultCommand(PasteColumns); #endregion }
public FileMenuViewModel(bool isDesignTime = false) { if (isDesignTime) { return; } Name = Strings.FileMenu; #region Names NewName = Strings.FileMenu_New; OpenName = Strings.FileMenu_Open; SaveName = Strings.FileMenu_Save; SaveAsName = Strings.FileMenu_SaveAs; ExitName = Strings.FileMenu_Exit; #endregion #region Commands NewCommand = new DefaultCommand(New); OpenCommand = new DefaultCommand(Open); SaveCommand = new DefaultCommand(Save); SaveAsCommand = new DefaultCommand(SaveAs); ExitCommand = new DefaultCommand(Exit); #endregion }