Пример #1
0
 public DialogResult ShowDialog(Documentation.Feature feature)
 {
     if (null != feature)
     {
         _helpTitle.Text = feature.Title;
         _webBrowser.DocumentText = feature.Description;
         return base.ShowDialog();
     }
     return DialogResult.Cancel;
 }
Пример #2
0
 static void Main()
 {
     string workingDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName);
     System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(typeof(Documentation));
     using (StringReader fs = new StringReader(Properties.Resources.documentation))
     {
         Program.Documentation = (Documentation)xs.Deserialize(fs);
     }
     Cursor.Current = Cursors.WaitCursor;
     GScrollSettings settings = new GScrollSettings();
     if (!GScrollRegistry.CheckRegistration())
     {
         using (Register register = new Register())
         {
             register.ShowDialog();
         }
     }
     Cursor.Current = Cursors.WaitCursor;
     Application.Run(settings);
 }
Пример #3
0
        static void Main()
        {
            string workingDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName);

            System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(typeof(Documentation));
            using (StringReader fs = new StringReader(Properties.Resources.documentation))
            {
                Program.Documentation = (Documentation)xs.Deserialize(fs);
            }
            Cursor.Current = Cursors.WaitCursor;
            UpgradeSettings();
            GScrollSettings settings = new GScrollSettings();

            if (!GScrollRegistry.CheckRegistration())
            {
                using (Register register = new Register())
                {
                    register.ShowDialog();
                }
            }
            Cursor.Current = Cursors.WaitCursor;
            Application.Run(settings);
        }