private void m_ClickTgglBtn_Checked(object sender, RoutedEventArgs e) { m_VideoSourceMediaTypeComboBox.IsEnabled = false; SelectWindow.getInstance().setupMouseHook(); m_ClickTgglBtn.Content = "Press 'l' for catching"; }
public static SelectWindow getInstance() { if (m_Instance == null) { m_Instance = new SelectWindow(); } return(m_Instance); }
void SelectWindow_m_pressedKey(char a_KeyChar) { if (a_KeyChar == 'l') { Dispatcher.Invoke( DispatcherPriority.Normal, new Action(() => { SelectWindow.getInstance().uninstallMouseHook(); m_ClickTgglBtn.IsChecked = false; m_ClickTgglBtn.Content = "Select by click"; fillmediaTypes(null, null); }) ); } }