Exemplo n.º 1
0
        public ConnectionSetup()
        {
            InitializeComponent();

            this.ports = new List<string>();
            this.timer = new System.Windows.Forms.Timer();
            this.timer.Tick += new EventHandler(TimerTick);
            this.timer.Interval = 100;
            this.timer.Enabled = true;
            this.timer.Start();
            RefreshPorts();
            if (this.ports.Count != 0)
            {
                this.serialPortList.SelectedIndex = this.ports.Count - 1;
            }
            this.connectionInfo.ReadOnly = true;
            this.connectionInfo.Clear();
            this.AppendText("Light Program - for Jilly!\n");
            this.simulator = new Simulator(this);
            this.lightChooser = new LightChooser(this);
            this.comms = new Comms();
            this.lightChooser.SetComms(this.comms);

            this.Icon = Properties.Resources.rgb;
        }
Exemplo n.º 2
0
 public ProgramEditor(LightChooser lightChooser)
 {
     this.comms = new Comms();
     this.lightChooser = lightChooser;
     InitializeComponent();
     this.transition = new Transition(this);
     this.set_display = new SetDisplay(this);
     this.wait = new Wait(this);
     this.Icon = Properties.Resources.rgb;
 }