private void ToolStripMenuItemEditClick(object sender, EventArgs e) { if (_directivesViewer.SelectedItems.Count != 1) { return; } var editForm = new QuatationOrderFormNew(_directivesViewer.SelectedItems[0]); if (editForm.ShowDialog() == DialogResult.OK) { AnimatedThreadWorker.RunWorkerAsync(); } }
protected override void RadGridView1_DoubleClick(object sender, EventArgs e) { if (SelectedItem != null) { var editForm = new QuatationOrderFormNew((RequestForQuotation)SelectedItem.Record.ParentPackage); if (editForm.ShowDialog() == DialogResult.OK) { var subs = GetListViewSubItems(SelectedItem); for (int i = 0; i < subs.Count; i++) { radGridView1.SelectedRows[0].Cells[i].Value = subs[i].Text; } } } }