}// InsertPropSheetPageControls void onSavePolicyClick(Object o, EventArgs e) { CWizard wiz = (CWizard)CNodeManager.GetNode(m_iCookie); if (m_chkSavePolicy.Checked) { wiz.TurnOnNext(true); } else { wiz.TurnOnNext(false); } } // onSavePolicyClick
}// onBrowse void onTextChange(Object o, EventArgs e) { CWizard wiz = (CWizard)CNodeManager.GetNode(m_iCookie); // See if we should turn on the Finish button if (m_txtFilename.Text.Length > 0) { wiz.TurnOnNext(true); } // Nope, we want the Finish button off else { wiz.TurnOnNext(false); } } // onTextChange
}// PutValuesinPage void onBrowse(Object o, EventArgs e) { // Pop up a file dialog so the user can find an assembly SaveFileDialog fd = new SaveFileDialog(); fd.Title = CResourceStore.GetString("CCreateDeploymentPackageWiz1:FileDialogTitle"); fd.Filter = CResourceStore.GetString("CCreateDeploymentPackageWiz1:FileDialogMask"); System.Windows.Forms.DialogResult dr = fd.ShowDialog(); if (dr == System.Windows.Forms.DialogResult.OK) { m_txtFilename.Text = fd.FileName; CWizard wiz = (CWizard)CNodeManager.GetNode(m_iCookie); wiz.TurnOnNext(true); } }// onBrowse
}// ImportedPermissionSet void onTextChange(Object o, EventArgs e) { CWizard wiz = (CWizard)CNodeManager.GetNode(m_iCookie); if (m_radCreateNew.Checked) { // See if we should turn on the Next button bool fTurnOnNext = m_txtName.Text.Length > 0; wiz.TurnOnNext(fTurnOnNext); } else { // If they have a filename, then we be messing with the finish button bool fTurnOnFinish = m_txtFilename.Text.Length > 0; wiz.TurnOnFinish(fTurnOnFinish); } }// onTextChange
}// InsertPropSheetPageControls void onCheckChange(Object o, EventArgs e) { CWizard wiz = (CWizard)CNodeManager.GetNode(m_iCookie); wiz.TurnOnNext(m_chkGiveFull.Checked); }// onCheckChange