Beispiel #1
0
        protected override void ButtonAddDisplayerRequested(object sender, ReferenceEventArgs e)
        {
            SmsEventTypeForm form = new SmsEventTypeForm(new SmsEventType());

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