Beispiel #1
0
 public TopRightToolBarViewModel()
 {
     CloseCommand         = new CommandViewModel(ExecuteClose);
     ResizeCommand        = new CommandViewModel(ExecuteResize);
     CollapseCommand      = new CommandViewModel(ExecuteCollapse);
     AccountCommand       = new CommandViewModel(ExecuteAccount);
     ThemeCommand         = new CommandViewModel(ExecuteTheme);
     LoginCommand         = new CommandViewModel(ExecuteLogin);
     CreateAccountCommand = new CommandViewModel(ExecuteCreateAccount);
     BasketCommand        = new CommandViewModel(ExecuteBasketCommand);
 }
Beispiel #2
0
 public SubItem(string SubName, UserControl screen = null)
 {
     MoveToMenuPageCommand = new CommandViewModel(Execute);
     this.SubName          = SubName;
     this.Screen           = screen;
 }