public WorkspaceViewModel(bool closable)
        {
            CloseCommand = new Command(this.OnRequestClose, CanClose);
            IsClosable = closable;

            this.PropertyChanged += WorkspaceViewModel_PropertyChanged;
        }
        public ServerViewModel(Server server)
        {
            Server = server;

            Server.PropertyChanged += Server_PropertyChanged;

            ServerDataAccess = new ServerDataAccess(Server);

            OpenCommand = new Command(Open, CanOpen);
            Players = new ObservableCollection<PlayerViewModel>();

            RefreshTimer.Elapsed += RefreshTimer_Elapsed;
        }
 private void InitCommands()
 {
     ScreenshotCommand = new Command(CmdGetScreenshot, CanGetScreenshot);
     ReloadCommand = new Command(CmdReload, CanReload);
     SaveImageCommand = new Command(CmdSaveImage, CanSaveImage);
     UploadImageCommand = new Command(CmdUploadImage, CanUploadImage);
 }
 private void InitCommands()
 {
     SearchCommand = new Command(CmdSearch, CanSearch);
 }