Пример #1
0
        void WebsiteViewer_Open(object sender, EventArgs e)
        {
            Website           website = websiteList[listView.SelectedIndices[0]];
            WebsiteEditorForm editor  = GetEditor <WebsiteEditorForm>(website);

            editor.SetUpdateMode(website);
            ShowEditorAsync(editor);
        }
Пример #2
0
 void WelcomePage_AfterNextAsync(object sender, RunWorkerCompletedEventArgs e)
 {
     if (manualRadioButton.Checked)
     {
         WebsiteEditorForm editor = Viewer.GetEditor <WebsiteEditorForm>(Website);
         editor.SetCreateMode(Website);
         Viewer.ShowEditorAsync(editor);
     }
 }
Пример #3
0
        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);
            }
        }