Esempio n. 1
0
        private void ToolStripMenuItemEditClick(object sender, EventArgs e)
        {
            if (_directivesViewer.SelectedItems.Count != 1)
            {
                return;
            }

            var editForm = new QuatationOrderFormNew(_directivesViewer.SelectedItems[0]);

            if (editForm.ShowDialog() == DialogResult.OK)
            {
                AnimatedThreadWorker.RunWorkerAsync();
            }
        }
Esempio n. 2
0
 protected override void RadGridView1_DoubleClick(object sender, EventArgs e)
 {
     if (SelectedItem != null)
     {
         var editForm = new QuatationOrderFormNew((RequestForQuotation)SelectedItem.Record.ParentPackage);
         if (editForm.ShowDialog() == DialogResult.OK)
         {
             var subs = GetListViewSubItems(SelectedItem);
             for (int i = 0; i < subs.Count; i++)
             {
                 radGridView1.SelectedRows[0].Cells[i].Value = subs[i].Text;
             }
         }
     }
 }