public override void OnClick()
        {
            MyIODATA_FRM myIODATA_FRM = new MyIODATA_FRM();

            if (myIODATA_FRM.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            ISODataClassification_Exchange_Info iSODataClassification = new ISODataClassification_Exchange_Info();

            iSODataClassification = MyIODATA_FRM.ISODataParams;
            ISODataClassificationAlgo iSODataClassificationAlgo = new ISODataClassificationAlgo
            {
                Params = iSODataClassification
            };

            AlgoFactory.Instance().AsynExecuteAlgo(iSODataClassificationAlgo);
            ISystemAlgoEvents systemAlgoEvents = iSODataClassificationAlgo as ISystemAlgoEvents;

            systemAlgoEvents.OnExecuteCompleted += OnAlgoExecuteCompleted;
            //systemAlgoEvents.OnProgressChanged += OnAlgoProgresChanged;
            //PIE.AxControls.IStatusBar statusBar = m_Application.StatusBar;

            //statusBar.ShowProgress(0, 100, "");
            //Application.DoEvents();
            ProgressBar progressBar = new ProgressBar();
        }
Exemple #2
0
        public override void OnClick()
        {
            ISODATA_FRM myIODATA_FRM = new ISODATA_FRM();

            if (myIODATA_FRM.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            ISODataClassification_Exchange_Info iSODataClassification = new ISODataClassification_Exchange_Info();

            iSODataClassification = ISODATA_FRM.ISODataParams;
            ISODataClassificationAlgo iSODataClassificationAlgo = new ISODataClassificationAlgo
            {
                Params = iSODataClassification
            };

            Application.DoEvents();
            AlgoFactory.Instance().AsynExecuteAlgo(iSODataClassificationAlgo);

            ISystemAlgoEvents systemAlgoEvents = iSODataClassificationAlgo as ISystemAlgoEvents;

            systemAlgoEvents.OnExecuteCompleted += OnAlgoExecuteCompleted;
            systemAlgoEvents.OnProgressChanged  += OnAlgoProgresChanged;
        }