Example #1
0
 private void SaveConfigProfileForm_Load(object sender, EventArgs e)
 {
     Utility.SetPositionToMouse(this);
     //this.TopMost = true;
     c_ddlConfigProfiles.Items.AddRange(ConfigProfiles.GetProfileNames().ToArray());
     c_ddlConfigProfiles.Text = m_DefaultProfile;
 }
 private void AccountSettingsForm_Load(object sender, EventArgs e)
 {
     Utility.SetPositionToMouse(this);
     //this.TopMost = true;
     c_ddlRealm.SelectedItem = Settings.Instance.DefaultRealm;
     UpdateAccounts();
 }
Example #3
0
 private void AddonsSettingsForm_Load(object sender, EventArgs e)
 {
     Utility.SetPositionToMouse(this);
     //this.TopMost = true;
     (new System.Threading.Tasks.Task(() => {
         m_AddonsWTF = AddonsWTF.LoadAllAccountAddons(WowVersionEnum.Vanilla);
         var installedAddons = InstalledAddons.GetInstalledAddons(WowVersionEnum.Vanilla);
         foreach (var installedAddon in installedAddons)
         {
             m_AddonInfos[installedAddon] = InstalledAddons.GetAddonInfo(installedAddon, WowVersionEnum.Vanilla);
             c_lbAddons.BeginInvoke(new Action(() => {
                 c_lbAddons.Items.Add(installedAddon);
                 if (c_lbAddons.Items.Count == 1)
                 {
                     c_lbAddons.SelectedIndex = 0;
                 }
             }));
         }
         c_lbAddons.BeginInvoke(new Action(() => {
             c_lbAddons.SelectedIndexChanged += c_lbAddons_SelectedIndexChanged;
             c_lbAddons.Enabled = true;
         }));
     })).Start();
     c_btnSaveAllChanges.Enabled = false;
 }
Example #4
0
 private void ChangeValueForm_Load(object sender, EventArgs e)
 {
     Utility.SetPositionToMouse(this);
     //this.TopMost = true;
     this.Text             = "Change Value";
     c_lblDescription.Text = m_Description;
     c_txtValue.Text       = m_OldValue;
 }
        private void CreateAddonPackageForm_Load(object sender, EventArgs e)
        {
            Utility.SetPositionToMouse(this);

            c_cbUpdateImportance.Items.AddRange(Enum.GetNames(typeof(ServerComm.UpdateImportance)));
            c_cbUpdateImportance.SelectedItem = ServerComm.UpdateImportance.Good.ToString();

            //this.TopMost = true;
            if (RealmPlayersUploader.IsValidUserID(Settings.UserID) == false)
            {
                Utility.MessageBoxShow("You must have a valid UserID to be able to create AddonPackages");
                Close();
            }
        }
        private void ApplicationSettingsForm_Load(object sender, EventArgs e)
        {
            Utility.SetPositionToMouse(this);
            //this.TopMost = true;
            c_txtUserID.Text            = Settings.UserID;
            c_txtWowDirectory.Text      = Settings.GetWowDirectory(WowVersionEnum.Vanilla);
            c_cbAutoRefresh.Checked     = Settings.Instance.AutoRefreshNews;
            c_cbxRunNotAdmin.Checked    = Settings.Instance.RunWoWNotAdmin;
            c_cbxAutoHide.Checked       = Settings.Instance.AutoHideOldNews;
            c_cbAutoUpdateVF.Checked    = Settings.Instance.AutoUpdateVFAddons;
            c_cbxFeenixNews.Checked     = Settings.Instance.NewsSources_Feenix;
            c_cbxNostalriusNews.Checked = Settings.Instance.NewsSources_Nostalrius;
            c_cbxKronosNews.Checked     = Settings.Instance.NewsSources_Kronos;

            if (RealmPlayersUploader.IsValidUserID(Settings.UserID) == true)
            {
                c_cbContributeRealmPlayers.Enabled = true;
                c_cbContributeRealmPlayers.Checked = Settings.Instance.ContributeRealmPlayers;
                c_cbContributeRaidStats.Enabled    = true;
                c_cbContributeRaidStats.Checked    = Settings.Instance.ContributeRaidStats;
                c_cbxWait5Seconds.Enabled          = true;
                c_cbxWait5Seconds.Checked          = Settings.Instance.Wait5SecondsAfterUpload;
            }
            else
            {
                c_cbContributeRealmPlayers.Enabled = false;
                c_cbContributeRaidStats.Enabled    = false;
                c_cbxWait5Seconds.Enabled          = false;
                c_cbContributeRealmPlayers.Checked = false;
                c_cbContributeRaidStats.Checked    = false;
                c_cbxWait5Seconds.Checked          = false;
            }
            //c_cbxWoWNoDelay.Checked = Settings.Instance.UseWoWNoDelay;
            if (Settings.HaveTBC == true)
            {
                c_cbxEnableTBC.Checked             = true;
                c_txtTBCWowDirectory.Enabled       = true;
                c_txtTBCWowDirectory.Text          = Settings.GetWowDirectory(WowVersionEnum.TBC);
                c_btnTBCWowDirectoryBrowse.Enabled = true;
            }
            else
            {
                c_cbxEnableTBC.Checked             = false;
                c_txtTBCWowDirectory.Text          = "";
                c_txtTBCWowDirectory.Enabled       = false;
                c_btnTBCWowDirectoryBrowse.Enabled = false;
            }
        }
Example #7
0
        private void ConfigSettingsForm_Load(object sender, EventArgs e)
        {
            Utility.SetPositionToMouse(this);
            //this.TopMost = true;
            c_ddlConfigProfile.Items.Clear();
            c_ddlConfigProfile.Items.Add("Active Wow Config");
            c_ddlConfigProfile.Items.AddRange(ConfigProfiles.GetProfileNames().ToArray());
            if (m_ConfigWTF == null)
            {
                m_ConfigWTF = ConfigWTF.LoadWTFConfigFile(WowVersionEnum.Vanilla);
            }
            if (c_ddlConfigProfile.Items.Contains(m_ProfileName) == false)
            {
                c_ddlConfigProfile.Items.Add(m_ProfileName);
            }

            c_ddlConfigProfile.SelectedItem = m_ProfileName;
            ConfigureConfigWTF();
        }
Example #8
0
 private void SetupUserIDForm_Load(object sender, EventArgs e)
 {
     Utility.SetPositionToMouse(this);
     c_txtUserID.Text = Settings.UserID;
     if (RealmPlayersUploader.IsValidUserID(c_txtUserID.Text) == false)
     {
         if (System.IO.File.Exists(Settings.GetWowDirectory(WowVersionEnum.Vanilla) + "VF_RealmPlayersUploader\\Settings.cfg") == true)
         {
             var oldSettings = System.IO.File.ReadAllLines(Settings.GetWowDirectory(WowVersionEnum.Vanilla) + "VF_RealmPlayersUploader\\Settings.cfg");
             foreach (var settingsLine in oldSettings)
             {
                 if (settingsLine.StartsWith("UserID="))
                 {
                     c_txtUserID.Text = settingsLine.Substring("UserID=".Length);
                     Utility.MessageBoxShow("Found old installation of VF_RealmPlayersUploader, copied the UserID");
                 }
             }
         }
     }
     //this.TopMost = true;
 }
 private void RealmListSettingsForm_Load(object sender, EventArgs e)
 {
     Utility.SetPositionToMouse(this);
     InitializeWindow();
 }
Example #10
0
 private void AboutWindow_Load(object sender, EventArgs e)
 {
     Utility.SetPositionToMouse(this);
     c_lblProgramVersion.Text = "Version: " + StaticValues.LauncherVersion;
 }