public BillsManagerUi() { InitializeComponent(); _myBillsManager = new BillsManager(); ChkPending.IsChecked = true; TbSerie.Text = "F"; TbYear.Text = DateTime.Now.Year.ToString(); }
private void SyncUpBills() { _myBillsManager = new BillsManager(); _syncBillsAgent = new BackgroundWorker { WorkerReportsProgress = true, WorkerSupportsCancellation = true }; _syncBillsAgent.DoWork += SyncBillsAgentDoWork; _syncBillsAgent.RunWorkerCompleted += SyncBillsAgentWorkComplete; if (_syncBillsAgent.IsBusy != true) { _syncBillsAgent.RunWorkerAsync(); } }
public GeneralInfoUi() { InitializeComponent(); _globalConfig = Repositorio.Read(); _myCustomersManager = new CustomersManager(); _myBillsManager = new BillsManager(); var calculeStatisticsAgent = new BackgroundWorker { WorkerReportsProgress = true, WorkerSupportsCancellation = true }; calculeStatisticsAgent.DoWork += CalculeStatisticsAgentDoWork; calculeStatisticsAgent.RunWorkerCompleted += CalculeStatisticsAgentRunWorkerCompleted; if (calculeStatisticsAgent.IsBusy != true) { calculeStatisticsAgent.RunWorkerAsync(); } CalculateRestantTimeToInitShippments(); }