コード例 #1
0
ファイル: DocumentControl.cs プロジェクト: mkbiltek2019/Cas
        private void linkLabelEditDocument_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var form = new DocumentForm(_currentDocument, false);

            if (form.ShowDialog() == DialogResult.OK)
            {
                UpdateDocument();
            }
        }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
 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;
             }
         }
     }
 }