Example #1
0
 void ShowGetStartedDialog()
 {
     using (GetStartedForm form = new GetStartedForm())
     {
         form.ShowDialog(this);
     }
 }
Example #2
0
 void InitEditors()
 {
     VirtualAssistant.Logger.Info("Initializing editors...");
     EditorHelper.InitNavigationBar(navigationBar);
     EditorHelper.InitCommandBar(searchControl);
     EditorHelper.InitVAControl(virtualAssistantControl);
     barButtonItem1.ItemClick    += (s, e) => { ShowUserProfileDialog(); };
     bbiVoiceSettings.ItemClick  += (s, e) => { ProcessHelper.Start("control", "/name Microsoft.TextToSpeech"); };
     bbiSearchSettings.ItemClick += (s, e) => { ProcessHelper.Start("control", "/name Microsoft.IndexingOptions"); };
     bbiExportToPDF.ItemClick    += (s, e) => { ExportDocumentToPDF(); };
     bbiExportToMHT.ItemClick    += (s, e) => { ExportDocumentToMHT(); };
     bbiExportToDOC.ItemClick    += (s, e) => { ExportDocumentToDOC(); };
     bbiExportToDOCX.ItemClick   += (s, e) => { ExportDocumentToDOCX(); };
     bbiExportToRTF.ItemClick    += (s, e) => { ExportDocumentToRTF(); };
     bbiExportToTXT.ItemClick    += (s, e) => { ExportDocumentToText(); };
     bbiExportToODT.ItemClick    += (s, e) => { ExportDocumentToODT(); };
     bbiExportToEPUB.ItemClick   += (s, e) => { ExportDocumentToEPUB(); };
     bbiExportToEPUB.ItemClick   += (s, e) => { ExportDocumentToXML(); };
     bbiPreviewPrint.ItemClick   += (s, e) => { PrintDocumentPreview(); };
     bbiQuickPrint.ItemClick     += (s, e) => { PrintDocumentQuick(); };
     bbiSaveDocument.ItemClick   += (s, e) => { SaveDocument(); };
     bbiSaveDocumentAs.ItemClick += (s, e) => { bbiSaveDocument.Enabled = true; SaveDocumentAs(); };
     bbiPrint.ItemClick          += (s, e) => { PrintDocument(); };
     bbiExit.ItemClick           += (s, e) => { CancelWhenClosing = false; Close(); };
     bbiGetStarted.ItemClick     += (s, e) => { GetStartedForm.OpenGetStartedWindow(); };
 }