Пример #1
0
 public MainWindowViewModel()
 {
     _disposedValue = false;
     _launchSession = new Command(this.ExecuteLaunchSession);
     _showThreadWindow = new Command(this.ExecuteShowThreadWindow, this.CanExecuteShowThreadWindow);
     _deleteThreadWindow = new Command(this.ExecuteDeleteThreadWindow, this.CanExecuteDeleteThreadWindow);
     _authenticate = new Command(this.ExecuteAuthenticate);
     _launchApplication = new Command(this.ExecuteLaunchApplication);
     _kielbasa = Kielbasa.Create();
 }
        public AccountingViewModel(IApplicationManager applicationManager, IDialogPresenter dialogPresenter)
        {
            ApplicationManager = applicationManager;
            DialogPresenter = dialogPresenter;
            IncomesCollection = new ObservableCollection<AccountItem>();
            SpendingCollection = new ObservableCollection<AccountItem>();

            WriteToExcelCommand = new Command(WriteToExcel);
            GridUpdateCommand = new Command(GridUpdate);

            GridUpdate();
        }