Exemplo n.º 1
0
        protected override void ButtonAddDisplayerRequested(object sender, ReferenceEventArgs e)
        {
            CAASmsEventTypeForm form = new CAASmsEventTypeForm(new CAASmsEventType()
            {
                OperatorId = _operatorId.Value
            });

            if (form.ShowDialog() == DialogResult.OK)
            {
                AnimatedThreadWorker.RunWorkerAsync();
            }
        }
Exemplo n.º 2
0
 protected override void RadGridView1_DoubleClick(object sender, EventArgs e)
 {
     if (SelectedItem != null)
     {
         var form = new CAASmsEventTypeForm(SelectedItem);
         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;
             }
         }
     }
 }