private void OnChordPressed(int chordId) { //get action HotKeyAction action = actions[chordId]; stateTimer.UpdateStateText(String.Format("Выполняется {0}...", action), true); //get param object param = null; if (action == HotKeyAction.LogComment) { inputForm.Style = InputFormStyle.ShowButtons | InputFormStyle.Multiline; inputForm.Setup(Common.LogCommentCaption); if (inputForm.ShowDialog(this) != DialogResult.OK) { return; } param = inputForm.GetResult(); } else if (action == HotKeyAction.DeleteLogFiles) { if (MessageBox.Show(this, Common.LogDeleteFilesQuestion, ApplicationServices.GetApplicationName(), MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) { return; } } else if (action == HotKeyAction.ShowExtensionFilter) { if (CheckTechnicalPassword()) { ShowExtensionFilter(); } return; } //run HotKeyHelper.Run(action, sberBank, param); }