void WebsiteViewer_Open(object sender, EventArgs e) { Website website = websiteList[listView.SelectedIndices[0]]; WebsiteEditorForm editor = GetEditor <WebsiteEditorForm>(website); editor.SetUpdateMode(website); ShowEditorAsync(editor); }
void WelcomePage_AfterNextAsync(object sender, RunWorkerCompletedEventArgs e) { if (manualRadioButton.Checked) { WebsiteEditorForm editor = Viewer.GetEditor <WebsiteEditorForm>(Website); editor.SetCreateMode(Website); Viewer.ShowEditorAsync(editor); } }
void FinishPage_AfterNextAsync(object sender, RunWorkerCompletedEventArgs e) { if (showEditorCheckBox.Checked) { if (Viewer == null) { throw new Exception("The Viewer property has not been set."); } WebsiteEditorForm editor = Viewer.GetEditor <WebsiteEditorForm>(Website); editor.SetUpdateMode(Website); Viewer.ShowEditorAsync(editor); } }