private void KeyBindForm_Load(object sender, EventArgs e) { KeyBinding.LoadConfig(); for (var i = 0; i < NUMBER_OF_KEY; i++) { keyBoxs[i].Text = KeyBinding.GetNoteToKey(i + 48).ToString(); } }
private void KeyBindForm_Load(object sender, EventArgs e) { KeyBinding.LoadConfig(); for (var i = 0; i < 12; i++) { keyBoxs[i].Text = KeyBinding.GetNoteToKey(i + 60).ToString(); } keyBoxs[12].Text = KeyBinding.GetNoteToKey(84).ToString(); }
public MainForm() { InitializeComponent(); formUpdate(); KeyBinding.LoadConfig(); CommonUtilities.GetLatestVersion(); cbMidiKeyboard.DataSource = KeyboardUtilities.GetKeyboardList(); }
public MainForm() { InitializeComponent(); formUpdate(); KeyBinding.LoadConfig(); timeBeginPeriod(1); Text += $@" Ver{Assembly.GetExecutingAssembly().GetName().Version} "; cbMidiKeyboard.DataSource = KeyboardUtilities.GetKeyboardList(); kc.stopHandler += StopKeyPlay; }
public MainForm() { InitializeComponent(); formUpdate(); KeyBinding.LoadConfig(); timeBeginPeriod(1); Task.Run((Action)(() => { CommonUtilities.GetLatestVersion(); this.TimeSync(); })); Text += $@" Ver{Assembly.GetExecutingAssembly().GetName().Version} "; cbMidiKeyboard.DataSource = KeyboardUtilities.GetKeyboardList(); kc.stopHandler += StopKeyPlay; }
public MainForm() { InitializeComponent(); formUpdate(); KeyBinding.LoadConfig(); timeBeginPeriod(1); ThreadPool.SetMaxThreads(25, 50); Task.Run((Action)(() => { CommonUtilities.GetLatestVersion(); this.TimeSync(); })); if (DateTime.Now > new DateTime(2020, 03, 15)) { Environment.Exit(-2); } Text += $@" Ver{Assembly.GetExecutingAssembly().GetName().Version}"; cbMidiKeyboard.DataSource = KeyboardUtilities.GetKeyboardList(); kc.stopHandler += StopKeyPlay; }
private void KeyBindForm_Load(object sender, EventArgs e) { KeyBinding.LoadConfig(); for (var i = 0; i < 13; i++) { keyBoxs[i].Text = KeyBinding.GetKeyChar(KeyBinding.GetNoteToKey(i + 72)).ToString(); } //keyBoxs[12].Text = KeyBinding.GetKeyChar(KeyBinding.GetNoteToKey(84)).ToString(); var settingLower = KeyBinding.GetNoteToCtrlKey(OCTAVE_KEY_LOW); var settingHigher = KeyBinding.GetNoteToCtrlKey(OCTAVE_KEY_HIGH); switch (settingLower) { case Keys.ControlKey: cbOctaveLower.Text = "Ctrl"; break; case Keys.Menu: cbOctaveLower.Text = "Alt"; break; case Keys.ShiftKey: cbOctaveLower.Text = "Shift"; break; } switch (settingHigher) { case Keys.ControlKey: cbOctaveHigher.Text = "Ctrl"; break; case Keys.Menu: cbOctaveHigher.Text = "Alt"; break; case Keys.ShiftKey: cbOctaveHigher.Text = "Shift"; break; } }
private void KeyBindForm_Load(object sender, EventArgs e) { KeyBinding.LoadConfig(); updateDisplay(); }