public ControlForm(LEDCommander Ledc) { this.Ledc = Ledc; InitializeComponent(); _infoUpdateTimer = new Timer(); _infoUpdateTimer.Tick += new EventHandler(UpdateInfo); _infoUpdateTimer.Interval = 1000; _infoUpdateTimer.Start(); }
public SetupForm() { Ledc = new LEDCommander(); InitializeComponent(); foreach (String com in LEDCommander.GetComs()) { listBox1.Items.Add(com); } }