Exemplo n.º 1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     SplashScreen.SpashScreen splash = new SplashScreen.SpashScreen();
     splash.Show();
     splash.Update();
     Helper.CheckForInternet();//We check for Internet connection at start!.
     Helper.DefaultFolderCreator(); //We create default MadCow needed folders.
     this.VersionLabel.Text = Application.ProductVersion;
     _writer = new TextBoxStreamWriter(ConsoleOutputTxtBox);
     Console.SetOut(_writer);
     Console.WriteLine("Welcome to MadCow!");
     ToolTip toolTip1 = new ToolTip();
     // Set up the delays for the ToolTip.
     toolTip1.AutoPopDelay = 1800;
     toolTip1.InitialDelay = 100;
     toolTip1.ReshowDelay = 100;
     // Force the ToolTip text to be displayed whether or not the form is active.
     toolTip1.ShowAlways = true;
     // Default buttons status.
     AutoUpdateValue.Enabled = false;
     EnableAutoUpdateBox.Enabled = false;
     PlayDiabloButton.Enabled = false;
     // Set up the ToolTip text for the Buttons.
     toolTip1.SetToolTip(this.UpdateMooegeButton, "Update mooege from GitHub to latest version");
     toolTip1.SetToolTip(this.CopyMPQButton, "Copy MPQ's if you have D3 installed");
     toolTip1.SetToolTip(this.FindDiabloButton, "Find Diablo.exe so MadCow can work properly");
     toolTip1.SetToolTip(this.ValidateRepoButton, "Validate the repository so MadCow can download it");
     toolTip1.SetToolTip(this.EnableAutoUpdateBox, "Enable updates to a repository every 'X' minutes");
     toolTip1.SetToolTip(this.RemoteServerLaunchButton, "Connects to public server you have entered in");
     toolTip1.SetToolTip(this.ResetRepoFolder, "Resets Repository folder in case of errors");
     toolTip1.SetToolTip(this.DownloadMPQSButton, "Downloads ALL MPQs needed to run Mooege");
     toolTip1.SetToolTip(this.RestoreDefaultsLabel, "Resets Server Control settings");
     toolTip1.SetToolTip(this.PlayDiabloButton, "Time to play Diablo 3 through Mooege!");
     InitializeFindPath(); //Search if a Diablo client path already exist.
     RepoCheck(); //Checks for duplicities.
     RepoList(); //Loads Repos from RepoList.txt
     Changelog(); //Loads Changelog comobox values.
     LoadLastUsedProfile(); //We try to Load the last used profile by the user.
     Helper.Helpers();//Loads the correct nameplate for shortcut/balloon/LastRepo enabled/disabled
     RetrieveMpqList.getfileList(); //Load MPQ list from Blizz server. Todo: This might slow down a bit MadCow loading, maybe we could place it somewhere else?.
     Helper.KillUpdater(); //This will kill MadCow updater if its running.
     ApplySettings(); //This loads Mooege settings over Mooege tab.
     splash.Hide();
 }
Exemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     var splash = new SplashScreen.SpashScreen();
     splash.Show();
     splash.Update();
     ChatDisplayBox.MaxLength = 250; //Chat lenght
     Helper.CheckForInternet();//We check for Internet connection at start!.
     _writer = new TextBoxStreamWriter(ConsoleOutputTxtBox);
     Console.SetOut(_writer);
     Console.WriteLine("Welcome to MadCow!");
     var toolTip1 = new ToolTip();
     // Set up the delays for the ToolTip.
     toolTip1.AutoPopDelay = 1800;
     toolTip1.InitialDelay = 100;
     toolTip1.ReshowDelay = 100;
     // Force the ToolTip text to be displayed whether or not the form is active.
     toolTip1.ShowAlways = true;
     // Default buttons status.
     // Set up the ToolTip text for the Buttons.
     toolTip1.SetToolTip(UpdateMooegeButton, "Update mooege from GitHub to latest version");
     toolTip1.SetToolTip(CopyMPQButton, "Copy MPQ's if you have D3 installed");
     toolTip1.SetToolTip(FindDiabloButton, "Find Diablo.exe so MadCow can work properly");
     toolTip1.SetToolTip(RemoteServerLaunchButton, "Connects to public server you have entered in");
     toolTip1.SetToolTip(ResetRepoFolder, "Resets Repository folder in case of errors");
     toolTip1.SetToolTip(DownloadMPQSButton, "Downloads ALL MPQs needed to run Mooege");
     toolTip1.SetToolTip(RestoreDefaultsLabel, "Resets Server Control settings");
     toolTip1.SetToolTip(PlayDiabloButton, "Time to play Diablo 3 through Mooege!");
     InitializeFindPath(); //Search if a Diablo client path already exist.
     LoadProfile(Configuration.MadCow.CurrentProfile); //We try to Load the last used profile by the user.
     RetrieveMpqList.GetfileList(); //Load MPQ list from Blizz server. Todo: This might slow down a bit MadCow loading, maybe we could place it somewhere else?.
     Helper.KillUpdater(); //This will kill MadCow updater if its running.
     ApplySettings(); //This loads Mooege settings over Mooege tab.
     splash.Hide();
 }