private void linkLabelEditDocument_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var form = new DocumentForm(_currentDocument, false); if (form.ShowDialog() == DialogResult.OK) { UpdateDocument(); } }
private void ButtonAddNonRoutineJobClick(object sender, EventArgs e) { var form = new DocumentForm(new Document(), _parent); if (form.ShowDialog() == DialogResult.OK) { AnimatedThreadWorker.DoWork -= AnimatedThreadWorkerDoWork; AnimatedThreadWorker.DoWork -= AnimatedThreadWorkerDoFilteringWork; AnimatedThreadWorker.DoWork += AnimatedThreadWorkerDoWork; AnimatedThreadWorker.RunWorkerAsync(); } }
protected override void RadGridView1_DoubleClick(object sender, EventArgs e) { if (SelectedItem != null) { DocumentForm form = new DocumentForm(SelectedItem); if (form.ShowDialog() == DialogResult.OK) { GlobalObjects.PerformanceCalculator.GetNextPerformance(SelectedItem); var subs = GetListViewSubItems(SelectedItem); for (int i = 0; i < subs.Count; i++) { radGridView1.SelectedRows[0].Cells[i].Value = subs[i].Text; } } } }