Exemplo n.º 1
0
 private void updateServerlistToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SplashScreen screen = new SplashScreen();
     screen.Opacity = GetOpacity("SplashOpacity");
     screen.ShowDialog(this);
 }
Exemplo n.º 2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            if (_instance == null)
                _instance = this;

            Opacity = GetOpacity("BrowserOpacity");

            Text = String.Format("ConnectUO Desktop - v.{0}.{1}.{3}.{2}", Core.Version.Major, Core.Version.Minor, Core.Version.Revision, Core.Version.Build);

            if (DateTime.Now.Ticks > AppSettings.Current.Get<long>("NextUpdateTime"))
                CheckForUpdates();

            if (AppSettings.Current.Get<string>("RazorPath") == "Not Installed")
                AppSettings.Current.Set<string>("RazorPath", Utility.DetectRazor());

            if (AppSettings.Current.Get<string>("ClientPath") == "Not Installed")
                AppSettings.Current.Set<string>("ClientPath", Utility.DetectClient("Ultima Online"));

            if (AppSettings.Current.Get<string>("ClientPath") == "Not Installed")
                AppSettings.Current.Set<string>("ClientPath", Utility.DetectClient("Ultima Online Third Dawn"));

            SplashScreen screen = new SplashScreen();
            screen.Opacity = GetOpacity("SplashOpacity");
            screen.ShowDialog();

            FixAddressBar();

            WebBrowser.DocumentTitleChanged += new EventHandler(OnDocumentTitleChanged);
            WebBrowser.ProgressChanged += new WebBrowserProgressChangedEventHandler(OnProgressChanged);
            WebBrowser.StatusTextChanged += new EventHandler(OnStatusTextChanged);

            Utility.OpenUrl("http://localhost.:1980/home.html?page=1");
        }