public PClapperMain() { // // Required for Windows Form Designer support // InitializeComponent(); pm = new PluginManager(); cam = new ClapActionManager(pm); listen = new Listener(); listen.addClapListener( this ); someTimer.Elapsed +=new System.Timers.ElapsedEventHandler(someTimer_Elapsed); someTimer.AutoReset = false; iconTimer.Elapsed +=new System.Timers.ElapsedEventHandler(iconTimer_Elapsed); iconTimer.AutoReset = false; if (isListening) { listen.Start(); mItemListen.Checked = true; sysTray.Icon = PClapper.Properties.Resources.trayIcon; } }
private void UserInitializeComponent() { plugins.Items.Clear(); pm = new PluginManager(); foreach (ClapperPluginInterface.IClapperPlugin p in pm.ClapperPlugins.Values) { plugins.Items.Add(p.Name); } plugins.SelectedIndex = 0; comboBoxType.SelectedIndex = 0; }
public ClapActionManager(PluginManager pmer) { pm = pmer; }