private void SettingsForm_Load(object sender, EventArgs e) { var s = Properties.Settings.Default; hostTextBox.Text = s.Host; portTextBox.Text = s.Port.ToString(); contextTextBox.Text = s.PBXContext; usernameTextBox.Text = s.Username; passwordTextBox.Text = s.Password; pingIntervalTextBox.Text = s.PingInterval.ToString(); fop2WebInterfaceTextBox.Text = s.FOP2Url; fop2UserPortalTextBox.Text = s.FOP2UserPortal; hotkeyComboBox.DataSource = Enum.GetValues(typeof(swi.Key)).Cast <swi.Key>(); DDHotkey hk = DDHotkey.Parse(s.GlobalDialHotkey); hotkeyComboBox.SelectedItem = hk.Key; hotkeyAltCheckBox.Checked = (hk.Modifier & swi.ModifierKeys.Alt) != 0; hotkeyCtrlCheckBox.Checked = (hk.Modifier & swi.ModifierKeys.Control) != 0; hotkeyWinCheckBox.Checked = (hk.Modifier & swi.ModifierKeys.Windows) != 0; hotkeyShiftCheckBox.Checked = (hk.Modifier & swi.ModifierKeys.Shift) != 0; dialcmd_FileTextBox.Text = s.DialCmd_File; dialcmd_WorkDirTextBox.Text = s.DialCmd_WorkDir; dialcmd_ArgsTextBox.Text = s.DialCmd_Args; dialcmd_MinLengthTextBox.Text = s.DialCmd_MinLength.ToString(); grabMinLengthTextBox.Text = s.GrabMinLength.ToString(); startwithwindowsCheckBox.Checked = RegistryHelper.IsInRunKey(); }
public DDHotkeyPressedEventArgs(DDHotkeyType type, DDHotkey hotkey) { this.Type = type; this.Hotkey = hotkey; }
public void Start() { _hotkeymanager.Register(DDHotkeyType.DialSelectionFromActiveWindow, DDHotkey.Parse(Properties.Settings.Default.GlobalDialHotkey)); _connectionmanager.Connect(DDCore.GetConnectionInfo()); }