Пример #1
0
        private void ButtonAddDisplayerRequested(object sender, ReferenceEventArgs e)
        {
            var form = new AddOperatorFrom(new AllOperators());

            if (form.ShowDialog() == DialogResult.OK)
            {
                AnimatedThreadWorker.RunWorkerAsync();
            }
            e.Cancel = true;
        }
Пример #2
0
 protected override void FillDisplayerRequestedParams(ReferenceEventArgs e)
 {
     if (SelectedItem != null)
     {
         var form = new AddOperatorFrom(SelectedItem);
         if (form.ShowDialog() == DialogResult.OK)
         {
             _animatedThreadWorker.RunWorkerAsync();
         }
         e.Cancel = true;
     }
 }