Exemple #1
0
 protected override void RadGridView1_DoubleClick(object sender, EventArgs e)
 {
     if (SelectedItem != null)
     {
         var form = new CAASupplierForm(SelectedItem);
         if (form.ShowDialog() == DialogResult.OK)
         {
             var subs = GetListViewSubItems(SelectedItem);
             for (int i = 0; i < subs.Count; i++)
             {
                 radGridView1.SelectedRows[0].Cells[i].Value = subs[i].Text;
             }
         }
     }
 }
Exemple #2
0
        private void ButtonAddDisplayerRequested(object sender, ReferenceEventArgs e)
        {
            e.Cancel = true;

            var form = new CAASupplierForm(new Supplier()
            {
                OperatorId = _operatorId.Value
            });

            if (form.ShowDialog() == DialogResult.OK)
            {
                AnimatedThreadWorker.DoWork -= AnimatedThreadWorkerDoWork;
                AnimatedThreadWorker.DoWork -= AnimatedThreadWorkerDoFilteringWork;
                AnimatedThreadWorker.DoWork += AnimatedThreadWorkerDoWork;

                AnimatedThreadWorker.RunWorkerAsync();
            }
        }
Exemple #3
0
        private void ToolStripMenuItemOpenClick(object sender, EventArgs e)
        {
            if (_directivesViewer.SelectedItems.Count == 0)
            {
                return;
            }

            SmartCore.Purchase.Supplier item = _directivesViewer.SelectedItems[0];

            var form = new CAASupplierForm(item);

            if (form.ShowDialog() == DialogResult.OK)
            {
                AnimatedThreadWorker.DoWork -= AnimatedThreadWorkerDoWork;
                AnimatedThreadWorker.DoWork -= AnimatedThreadWorkerDoFilteringWork;
                AnimatedThreadWorker.DoWork += AnimatedThreadWorkerDoWork;

                AnimatedThreadWorker.RunWorkerAsync();
            }
        }