private void SaveOptions()
        {
            Options.SummonerName = SummonerNameTextbox.Text;
            Options.Username     = UsernameTextbox.Text;
            if (EncryptPasswordToggle.Checked)
            {
                if (Encryption.IsBase64String(PasswordTextbox.Text))
                {
                    Options.Password = PasswordTextbox.Text;
                }
                else
                {
                    Options.Password = Encryption.ConvertToBase64(PasswordTextbox.Text);
                }
            }
            else
            {
                Options.Password = PasswordTextbox.Text;
            }
            Options.IsPasswordEncrypted = EncryptPasswordToggle.Checked;
            Options.LeagueExeDirectory  = LeagueDirectoryTextbox.Text;
            Options.MatchType           = MatchTypeCombobox.Text;
            Options.SummonerType        = SummonerTypeCombobox.Text;
            Options.ChampionName        = ChampionNameTextbox.Text;
            if (HelpFile.IsTextNumeric(InteractionIntervalTextbox.Text))
            {
                Options.InteractionInterval = int.Parse(InteractionIntervalTextbox.Text);
            }

            Options.LoginUsernameCoordinates         = CoordinatesLoginUsernameTextbox.Text;
            Options.LoginPasswordCoordinates         = CoordinatesLoginPasswordTextbox.Text;
            Options.LoginButtonCoordinates           = CoordinatesLoginButtonTextbox.Text;
            Options.PlayButtonCoordinates            = CoordinatesPlayButtonTextbox.Text;
            Options.SummonersRiftCoordinates         = CoordinatesSummonersMatchTextbox.Text;
            Options.ARAMMatchCoordinates             = CoordinatesARAMMatchTextbox.Text;
            Options.BlindPickCoordinates             = CoordinatesBlindPickTextbox.Text;
            Options.DraftPickCoordinates             = CoordinatesDraftPickTextbox.Text;
            Options.RankedSoloDuoCoordinates         = CoordinatesRankedSoloDuoTextbox.Text;
            Options.ConfirmButtonCoordinates         = CoordinatesConfirmButtonTextbox.Text;
            Options.ChampionSearchTextboxCoordinates = CoordinatesChampionSearchTextbox.Text;
            Options.FirstChampionBoxCoordinates      = CoordinatesFirstChampionBoxTextbox.Text;
            Options.LockButtonCoodinates             = CoordinatesLockButtonTextbox.Text;

            Options.ContiuouslyMonitorAcceptMatch = ContiuouslyMonitorAcceptMatchCheckbox.Checked;

            Options.PrimaryColor      = (Primary)Enum.Parse(typeof(Primary), PrimaryColourDropbox.SelectedItem.ToString());
            Options.PrimaryDarkColor  = (Primary)Enum.Parse(typeof(Primary), DarkPrimaryColourDropdownbox.SelectedItem.ToString());
            Options.PrimaryLightColor = (Primary)Enum.Parse(typeof(Primary), LightPrimaryColourDropdownbox.SelectedItem.ToString());
            Options.AccentColor       = (Accent)Enum.Parse(typeof(Accent), AccentColourDropdownbox.SelectedItem.ToString());
            Options.TextShadeColour   = (TextShade)Enum.Parse(typeof(TextShade), TextshadeColourDropdownbox.SelectedItem.ToString());
        }
        private void SaveOptions()
        {
            Options.SummonerName = SummonerNameTextbox.Text;
            Options.Username     = UsernameTextbox.Text;
            if (EncryptPasswordToggle.Checked)
            {
                Options.Password     = Encryption.EncryptNewPassword(PasswordTextbox.Text);
                Options.EncryptedIV  = Encryption.ConvertRijndaelIVToBase64();
                Options.EncryptedKey = Encryption.ConvertRijndaelKeyToBase64();
            }
            else
            {
                Options.Password = PasswordTextbox.Text;
            }
            Options.IsPasswordEncrypted = EncryptPasswordToggle.Checked;
            Options.LeagueExeDirectory  = LeagueDirectoryTextbox.Text;
            Options.MatchType           = MatchTypeCombobox.Text;
            Options.SummonerType        = SummonerTypeCombobox.Text;
            Options.ChampionName        = ChampionNameTextbox.Text;
            if (HelpFile.IsTextNumeric(ImageRecognitionIntervalTextbox.Text))
            {
                Options.ImageRecognitionInterval = int.Parse(ImageRecognitionIntervalTextbox.Text);
            }

            Options.LoginUsernameCoordinates         = CoordinatesLoginUsernameTextbox.Text;
            Options.LoginPasswordCoordinates         = CoordinatesLoginPasswordTextbox.Text;
            Options.LoginButtonCoordinates           = CoordinatesLoginButtonTextbox.Text;
            Options.PlayButtonCoordinates            = CoordinatesPlayButtonTextbox.Text;
            Options.SummonersRiftCoordinates         = CoordinatesSummonersMatchTextbox.Text;
            Options.ARAMMatchCoordinates             = CoordinatesARAMMatchTextbox.Text;
            Options.BlindPickCoordinates             = CoordinatesBlindPickTextbox.Text;
            Options.DraftPickCoordinates             = CoordinatesDraftPickTextbox.Text;
            Options.RankedSoloDuoCoordinates         = CoordinatesRankedSoloDuoTextbox.Text;
            Options.ConfirmButtonCoordinates         = CoordinatesConfirmButtonTextbox.Text;
            Options.ChampionSearchTextboxCoordinates = CoordinatesChampionSearchTextbox.Text;
            Options.FirstChampionBoxCoordinates      = CoordinatesFirstChampionBoxTextbox.Text;
            Options.LockButtonCoodinates             = CoordinatesLockButtonTextbox.Text;
        }