Ejemplo n.º 1
0
 private void btnImport_Click(object sender, EventArgs e)
 {
     if (this.ltvSecurityDefinitions.CheckedItems.Count == 0)
     {
         int num1 = (int)MessageBox.Show((IWin32Window)this, "No instruments selected.", "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else
     {
         this.Cursor = Cursors.WaitCursor;
         List <FIXSecurityDefinition> list = new List <FIXSecurityDefinition>();
         foreach (SecurityDefinitionViewItem definitionViewItem in this.ltvSecurityDefinitions.Items)
         {
             if (definitionViewItem.Checked)
             {
                 list.Add(definitionViewItem.SecurityDefinition);
             }
         }
         this.Cursor = Cursors.Default;
         ProcessImportForm processImportForm = new ProcessImportForm();
         processImportForm.Init(this.provider, list.ToArray());
         int num2 = (int)processImportForm.ShowDialog((IWin32Window)this);
         processImportForm.Dispose();
     }
 }
Ejemplo n.º 2
0
 private void btnImport_Click(object sender, EventArgs e)
 {
   if (this.ltvSecurityDefinitions.CheckedItems.Count == 0)
   {
     int num1 = (int) MessageBox.Show((IWin32Window) this, "No instruments selected.", "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
   }
   else
   {
     this.Cursor = Cursors.WaitCursor;
     List<FIXSecurityDefinition> list = new List<FIXSecurityDefinition>();
     foreach (SecurityDefinitionViewItem definitionViewItem in this.ltvSecurityDefinitions.Items)
     {
       if (definitionViewItem.Checked)
         list.Add(definitionViewItem.SecurityDefinition);
     }
     this.Cursor = Cursors.Default;
     ProcessImportForm processImportForm = new ProcessImportForm();
     processImportForm.Init(this.provider, list.ToArray());
     int num2 = (int) processImportForm.ShowDialog((IWin32Window) this);
     processImportForm.Dispose();
   }
 }