} // end ShowSummaryPanel #endregion #region ShowProgressPanel /// <summary> /// ShowPanel event for the ProgressPanel, which added a completed event to notify the wizard /// when the conversion is complete, and starts the conversion. /// </summary> /// <param name="sender">Progress Panel</param> /// <param name="e"></param> private void ShowProgressPanel(WizardCtrlPnlNmspc.WizardControlPanel sender, EventArgs e) { ProgressPanel progressPanel = sender as ProgressPanel; SetActiveView(false); Cursor = System.Windows.Forms.Cursors.WaitCursor; if (progressPanel != null) { // Adding the completed event to notify the wizard when the conversion is complete progressPanel.Completed += new ICS.GUI_Library.Controls.WizardControlPanels.CompletedEventHandler(VariableImportComplete); // Starting the data export by calling the ProgressPanel's StartExport method passing // the Data Access Layer for RFSmart Version 3, the selected environment from which the // data will be exported, and the file to which the data will be exported. progressPanel.StartTask(new VariableImporter(DataDropFilePnl.DataDropFilePath, LabelFormatPnl.LabelFormatFilePath)); } // end if } // end ShowProgressPanel
} // end ShowSummaryPanel #endregion #region ShowProgressPanel /// <summary> /// ShowPanel event for the ProgressPanel, which added a completed event to notify the wizard /// when the conversion is complete, and starts the conversion. /// </summary> /// <param name="sender">Progress Panel</param> /// <param name="e"></param> private void ShowProgressPanel(WizardControlPanel sender, EventArgs e) { ProgressPanel progressPanel = sender as ProgressPanel; SetActiveView(false); Cursor = System.Windows.Forms.Cursors.WaitCursor; if (progressPanel != null) { // Adding the completed event to notify the wizard when the conversion is complete progressPanel.Completed += new CompletedEventHandler(ConstructResults); // Starting the data export by calling the ProgressPanel's StartExport method passing // the Data Access Layer for RFSmart Version 3, the selected environment from which the // data will be exported, and the file to which the data will be exported. progressPanel.StartTask(new DataExporter(EnvironmentPnl.DataAccessLayer, EnvironmentPnl.Environments, ExpFilePathPnl.ExportFilePath)); } // end if } // end ShowProgressPanel