/// <summary> /// Constructor for HotKeyRemovalForm class. /// </summary> /// /// <param name="_hkAddress"> /// Pointer to a HotKeyDataHolder struct. This structs members will be mutated by the Form. /// The contents of this pointer will include values selected via user keyboard input on this form. /// </param> /// /// <param name="existingHotkeys">A dictionary of existing Hotkeys and their corresponding actions.</param> public HotKeyRemovalForm(HotKeyDataHolder* _hkAddress, Dictionary<HotKey, ThemePathContainer> existingHotkeys) { InitializeComponent(); HKAddress = _hkAddress; foreach (KeyValuePair<HotKey, ThemePathContainer> entry in existingHotkeys) { cmbHotkeys.Items.Add(entry.Key); } }
/// <summary> /// Constructor for HotKeyPickerForm class. /// </summary> /// /// <param name="_hkAddress"> /// A pointer to a HotKeyDataHolder. The members of this struct will be mutated by the form. /// The contents of this pointer will include values selected via user keyboard input on this form. /// </param> /// /// <param name="_themeData"> /// A pointer to a ThemeDataHolder struct. The members of this struct will be mutated by the form. /// The contents of this pointer will be a user selected path to a theme file. /// </param> /// /// <param name="existingHotkeys">A dictionary of existing Hotkeys and their corresponding actions.</param> public HotKeyPickerForm(HotKeyDataHolder *_hkAddress, ThemeDataHolder *_themeData, Dictionary <HotKey, ThemePathContainer> existingHotkeys) { InitializeComponent(); HotKeys = existingHotkeys; HKID = getNextHKID(); lblHKID.Text += HKID; HKAddress = _hkAddress; ThemeData = _themeData; btnSecondTheme.Hide(); lblTheme2OK.Hide(); }