Ejemplo n.º 1
0
        private void ButtonAddDisplayerRequested(object sender, ReferenceEventArgs e)
        {
            e.Cancel = true;

            SupplierForm form = new SupplierForm();

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

                AnimatedThreadWorker.RunWorkerAsync();
            }
        }
Ejemplo n.º 2
0
 protected override void RadGridView1_DoubleClick(object sender, EventArgs e)
 {
     if (SelectedItem != null)
     {
         SupplierForm form = new SupplierForm(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;
             }
         }
     }
 }
Ejemplo n.º 3
0
        private void ToolStripMenuItemOpenClick(object sender, EventArgs e)
        {
            if (_directivesViewer.SelectedItems.Count == 0)
            {
                return;
            }

            Supplier item = _directivesViewer.SelectedItems[0];

            SupplierForm form = new SupplierForm(item);

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

                AnimatedThreadWorker.RunWorkerAsync();
            }
        }