Пример #1
0
 private void btnGenerate_Click(object sender, EventArgs e)
 {
     if (lvGenType.SelectedObjects.Count > 0)
     {
         SequenceGenerator         seqGen         = (SequenceGenerator)lvGenType.SelectedObject;
         AbstractSequenceGenerator seqGenAbstract = (AbstractSequenceGenerator)seqGen;
         seqGenAbstract.PickGenerationProgress += SeqGenAbstract_PickGenerationProgress;
         isPickGeneratorRunningStatus           = true;
         String errMsg = "";
         if (!seqGen.AreParametersValueValid(out errMsg))
         {
             MessageBox.Show(errMsg);
             return;
         }
         ButtonAvailabilityWhilePicking(true);
         DisplayGeneratedSequence(seqGen.GenerateSequence());
     }
     ButtonAvailabilityWhilePicking(false);
 }