public ToolBarViewModel(ExpenseViewModel expenseViewModel) { this.expenseViewModel = expenseViewModel; this.ExportDirectory = Directory.GetCurrentDirectory(); this.exportReportsCommand = new DelegateCommand((parameter) => { this.ExportReports(); }); this.chooseDirectoryCommand = new DelegateCommand((parameter) => { this.ChooseDirectory(); }); }
public ToolBarViewModel(ExpenseViewModel expenseViewModel) { this.expenseViewModel = expenseViewModel; this.reports = new ObservableCollection<string>(new string[] { "Sales", "Marketing", "Engineering" }); this.SelectedReport = this.Reports[0]; this.exportReportCommand = new DelegateCommand((parameter) => { this.ExportReport(); }); }
public ToolBarViewModel(ExpenseViewModel expenseViewModel) { this.expenseViewModel = expenseViewModel; this.reports = new ObservableCollection <string>(new string[] { "Sales", "Marketing", "Engineering" }); this.SelectedReport = this.Reports[0]; this.exportReportCommand = new DelegateCommand((parameter) => { this.ExportReport(); }); }