Esempio n. 1
0
 private void загрузкаРеестраToolStripMenuItem_Click(object sender, System.EventArgs e)
 {
     if (!this.IsRunProcessRequest())
     {
         LoadPayReestersForm form = new LoadPayReestersForm();
         if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.Yes)
         {
             ObjectList<PayReester> list = new ObjectList<PayReester>();
             list = PayReester.FindNotProcessed();
             this.payReestersSearchForm.PayReesters = list;
             this.RefreshReesters();
         }
     }
 }
Esempio n. 2
0
 private void tsbtnLoad_Click(object sender, System.EventArgs e)
 {
     LoadPayReestersForm form = new LoadPayReestersForm();
     if (System.Windows.Forms.DialogResult.Cancel != form.ShowDialog(this))
     {
         ObjectList<PayReester> list = (this.bsPayReestres.get_DataSource() as ObjectList<PayReester>) ?? new ObjectList<PayReester>();
         if (form.LoadedReester != null)
         {
             list.Add(form.LoadedReester);
         }
         this.bsPayReestres.set_DataSource(list);
         this.FindReesters();
     }
 }