Example #1
0
        protected override void ButtonAddDisplayerRequested(object sender, ReferenceEventArgs e)
        {
            NonRoutineJobForm form = new NonRoutineJobForm(new NonRoutineJob());

            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)
     {
         var form = new NonRoutineJobForm(SelectedItem);
         if (form.ShowDialog() == DialogResult.OK)
         {
             var subs = GetListViewSubItems(SelectedItem);
             for (var i = 0; i < subs.Count; i++)
             {
                 radGridView1.SelectedRows[0].Cells[i].Value = subs[i].Text;
             }
         }
     }
 }