Example #1
0
        private void ButtonAddNonRoutineJobClick(object sender, EventArgs e)
        {
            var form = new CAAUserForm(new CAAUser()
            {
                PersonnelId = -1, Personnel = Specialist.Unknown
            }, _specialists);

            if (form.ShowDialog() == DialogResult.OK)
            {
                AnimatedThreadWorker.DoWork -= AnimatedThreadWorkerDoWork;
                AnimatedThreadWorker.DoWork -= AnimatedThreadWorkerDoFilteringWork;
                AnimatedThreadWorker.DoWork += AnimatedThreadWorkerDoWork;

                AnimatedThreadWorker.RunWorkerAsync();
            }
        }
Example #2
0
        protected override void RadGridView1_DoubleClick(object sender, EventArgs e)
        {
            if (SelectedItem != null)
            {
                var form = new CAAUserForm(SelectedItem, Specialists);
                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;
                    }

                    AnimatedThreadWorker.RunWorkerAsync();
                }
            }
        }