public HotKeySetForm(ApplicationMessageBinding objHotKey) { InitializeComponent(); Localizer.LocalizeControl(this); ObjHotKey = objHotKey; txtActionName.Text = EnumFriendlyName <ApplicationMessage> .GetString(ObjHotKey.Message); txtbxHotKeyNewValue.Text = ObjHotKey.Key; mainForm = Application.OpenForms[0] as MainForm; if (mainForm != null) { mainForm.KeyPressedEvent += MainFormKeyPressedEvent; } }
private void SetupGrid() { var blank = new ApplicationMessageBinding(ApplicationMessage.Quotes, Keys.F1, ApplicationMessageBinding.WindowMessage.KeyDown); grid.Columns.Add(new FastColumn(blank.Property(p => p.Title), Localizer.GetString("TitleAction")) { ColumnMinWidth = 200, IsHyperlinkStyleColumn = true, HyperlinkActiveCursor = Cursors.Hand }); grid.Columns.Add(new FastColumn(blank.Property(p => p.Key), Localizer.GetString("TitleCombination")) { ColumnWidth = 200, IsHyperlinkStyleColumn = true, HyperlinkActiveCursor = Cursors.Hand }); grid.CalcSetTableMinWidth(); grid.UserHitCell += GridUserHitCell; }