internal void LoadNextScreen() { Interfaces.Controls.ContentItems.ContentItem currentItem = (Interfaces.Controls.ContentItems.ContentItem)panelContent.Controls[0]; if (currentItem.HasFinish) { DialogResult = DialogResult.OK; Close(); return; } if (!currentItem.HasNext || !currentItem.Next()) { return; } if (currentItem.HasFinish) { DialogResult = DialogResult.OK; Close(); return; } if (typeof(ScreenStart).IsInstanceOfType(currentItem)) { ScreenStart.Actions action = ScreenStart.Action; switch (action) { case ScreenStart.Actions.Purchase: break; case ScreenStart.Actions.Trial: Result = ScreenStart.Actions.Trial; if (ScreenStart.Action == ScreenStart.Actions.Trial && DaysRemaining > 0) { DialogResult = DialogResult.OK; Close(); return; } break; default: throw new NotImplementedException(action.ToString()); } } else { throw new NotImplementedException(currentItem.GetType().Name); } }
private void frmLicenseWizard_FormClosing(object sender, FormClosingEventArgs e) { LicenseMonitor.Reset(); switch (LicenseMonitor.CurrentLicense.LicenseStatus) { case LicenseMonitor.LicenseStates.EvaluationMode: Result = Licensing.LicenseWizard.ScreenStart.Actions.Trial; break; case LicenseMonitor.LicenseStates.Licensed: Result = Licensing.LicenseWizard.ScreenStart.Actions.Activate; break; default: Result = Licensing.LicenseWizard.ScreenStart.Actions.None; //Application.Exit(); break; } }
internal void LoadNextScreen() { Interfaces.Controls.ContentItems.ContentItem currentItem = (Interfaces.Controls.ContentItems.ContentItem)panelContent.Controls[0]; if (currentItem.HasFinish) { DialogResult = DialogResult.OK; Close(); return; } if (!currentItem.HasNext || !currentItem.Next()) { return; } if (currentItem.HasFinish) { DialogResult = DialogResult.OK; Close(); return; } if (typeof(ScreenStart).IsInstanceOfType(currentItem)) { ScreenStart.Actions action = ScreenStart.Action; switch (action) { case ScreenStart.Actions.Purchase: break; case ScreenStart.Actions.Trial: Result = ScreenStart.Actions.Trial; if (ScreenStart.Action == ScreenStart.Actions.Trial && DaysRemaining > 0) { DialogResult = DialogResult.OK; Close(); return; } break; default: throw new NotImplementedException(action.ToString()); } } else throw new NotImplementedException(currentItem.GetType().Name); }