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; } } } }
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(); } }
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(); } }