// implementing WizardStepControl: public void activate(object obj) { Project.pdaWellSelectingMode = true; Project.pdaWizardStepControl = this; iCaller = (IEnableDisable)obj; iCaller.enable(3); // resize the dialog iCaller.disable(2); // initially disable the Next button, with the hint pop-up if (TerraserverCache.TileNamesCollection != null) { TerraserverCache.TileNamesCollection.Clear(); } else { TerraserverCache.TileNamesCollection = new Hashtable(); } }
// implementing WizardStepControl: public void activate(object obj) { Project.pdaWellSelectingMode = true; Project.pdaWizardStepControl = this; iCaller = (IEnableDisable)obj; iCaller.enable(3); // resize the dialog iCaller.disable(2); // initially disable the Next button, with the hint pop-up if(TerraserverCache.TileNamesCollection != null) { TerraserverCache.TileNamesCollection.Clear(); } else { TerraserverCache.TileNamesCollection = new Hashtable(); } }
// implementing WizardStepControl: public void activate(object obj) { PictureManager.This.CameraManager.resetDrag(true); exportFolderTextBox.Text = Project.exportDestFolder; labelHeader.Text = headerText0; IEnableDisable iCaller = (IEnableDisable)obj; iCaller.disable(1); // make the Next button invisible, and "Close" appear on cancel button Application.DoEvents(); if (verifyPdaExportSet()) { labelHeader.Text = headerText1; Application.DoEvents(); if (m_pdaCopyThread == null) { m_pdaCopyThread = new Thread(new ThreadStart(monitorPdaExportProgress)); // see Entry.cs for how the current culture is set: m_pdaCopyThread.CurrentCulture = Thread.CurrentThread.CurrentCulture; //new CultureInfo("en-US", false); m_pdaCopyThread.CurrentUICulture = Thread.CurrentThread.CurrentUICulture; //new CultureInfo("en-US", false); m_pdaCopyThread.IsBackground = true; // terminate with the main process m_pdaCopyThread.Name = "Copying tiles for PDA"; m_pdaCopyThread.Start(); } } else { labelHeader.Text = verifyTextEmpty; labelInfo.Text = "The map set you created appears to be empty.\r\nPlease repeat, selecting zoom area(s) as desired."; progressBar.Visible = false; exportFolderLabel.Visible = false; exportFolderTextBox.Visible = false; } }
// can be called repeatedly public void init(IEnableDisable endis, string message, string message0, string selHint, StringById descrById, StringById zoomById, StringById browseById, MethodInvoker showSelected) { m_enDis = endis; // has to be not null at this point m_enDis.disable(ED_SELECTED); m_enDis.disable(ED_ALLDATA); m_enDis.disable(ED_ZOOM); m_enDis.disable(ED_BROWSE); m_messageSecondary = message; m_messageInitial = message0; m_selHint = selHint; m_descrById = descrById; m_zoomById = zoomById; m_browseById = browseById; m_showSelected = showSelected; m_startSelection = -1; m_endSelection = -1; m_startSelectionRect = -1; m_endSelectionRect = -1; m_selected = -1; // keep m_selectedId though to select it again }