Subversion Repositories group.NITPanels

Rev

Rev 4 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 5
Line 116... Line 116...
116
 
116
 
117
                        this.fsx.simdata.objectid = ObjectID;
117
                        this.fsx.simdata.objectid = ObjectID;
118
                        this.fsx.simdata.aircraft = aircraftdata;
118
                        this.fsx.simdata.aircraft = aircraftdata;
119
 
119
 
120
                        this.fsx.FsxReady();
120
                        this.fsx.FsxReady();
-
 
121
                        foreach (NITDevice device in panels.devices)
-
 
122
                            if (device.Open())
-
 
123
                                device.FsxReady();
-
 
124
 
121
                        this.InitFsxReady();
125
                        this.InitFsxReady();
122
 
126
 
123
                        break;
127
                        break;
124
                    }
128
                    }
125
            }           
129
            }           
Line 258... Line 262...
258
        private void cmdRequest_Click(object sender, EventArgs e) {
262
        private void cmdRequest_Click(object sender, EventArgs e) {
259
 
263
 
260
        }
264
        }
261
 
265
 
262
        private void inputTimer_Tick(object sender, EventArgs e) {
266
        private void inputTimer_Tick(object sender, EventArgs e) {
-
 
267
            // @TODO: Each device now has its own input timer, remove the below
263
            foreach (NITDevice device in panels.devices) {
268
            //foreach (NITDevice device in panels.devices) {
264
                if (device.isOpen())
269
            //    if (device.isOpen())
265
                    device.SimButtons();
270
            //        device.SimButtons();
266
            }
271
            //}
267
 
272
 
268
        }
273
        }
269
 
274
 
270
        private void MainForm_FormClosing(object sender, FormClosingEventArgs e) {
275
        private void MainForm_FormClosing(object sender, FormClosingEventArgs e) {
271
            this.quitNITPanels();
276
            this.quitNITPanels();