/// <summary> /// On combobox selection changed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void encryptionBox_SelectionChanged(object sender, EventArgs e) { if (bIsLoading) { return; } int selectedIndex = encryptionBox.SelectedIndex; WzMapleVersion wzMapleVersion = MainForm.GetWzMapleVersionByWzEncryptionBoxSelection(selectedIndex); if (wzMapleVersion == WzMapleVersion.CUSTOM) { CustomWZEncryptionInputBox customWzInputBox = new CustomWZEncryptionInputBox(); customWzInputBox.ShowDialog(); } }
/// <summary> /// On combobox selection changed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void EncryptionBox_SelectionChanged(object sender, EventArgs e) { if (bIsLoading) { return; } int selectedIndex = encryptionBox.SelectedIndex; WzMapleVersion wzMapleVersion = MainForm.GetWzMapleVersionByWzEncryptionBoxSelection(selectedIndex); if (wzMapleVersion == WzMapleVersion.CUSTOM) { CustomWZEncryptionInputBox customWzInputBox = new CustomWZEncryptionInputBox(); customWzInputBox.ShowDialog(); } else { MapleCryptoConstants.UserKey_WzLib = MapleCryptoConstants.MAPLESTORY_USERKEY_DEFAULT.ToArray(); } }