コード例 #1
0
 public BillsManagerUi()
 {
     InitializeComponent();
     _myBillsManager      = new BillsManager();
     ChkPending.IsChecked = true;
     TbSerie.Text         = "F";
     TbYear.Text          = DateTime.Now.Year.ToString();
 }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
        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();
        }