コード例 #1
0
 public FlightComputerWindow(FlightComputer.FlightComputer fc)
     : base(Guid.NewGuid(), "FlightComputer", new Rect(100, 100, 0, 0), WindowAlign.Floating)
 {
     mSavePosition   = true;
     mFlightComputer = fc;
     mAttitude       = new AttitudeFragment(fc, () => mQueueEnabled = !mQueueEnabled);
     mRover          = new RoverFragment(fc, () => mQueueEnabled = !mQueueEnabled);
     mQueue          = new QueueFragment(fc);
     mQueueEnabled   = false;
 }
コード例 #2
0
 public FlightComputerWindow(FlightComputer.FlightComputer fc)
     : base(Guid.NewGuid(), "FlightComputer", new Rect(100, 100, 0, 0), WindowAlign.Floating)
 {
     mSavePosition = true;
     mFlightComputer = fc;
     mAttitude = new AttitudeFragment(fc, () => mQueueEnabled = !mQueueEnabled);
     mRover = new RoverFragment(fc, () => mQueueEnabled = !mQueueEnabled);
     mQueue = new QueueFragment(fc);
     mQueueEnabled = false;
 }
コード例 #3
0
 public FlightComputerWindow(FlightComputer.FlightComputer fc)
     : base(Guid.NewGuid(), appTitle, new Rect(100, 100, 0, 0), WindowAlign.Floating)
 {
     mSavePosition   = true;
     mFlightComputer = fc;
     mAttitude       = new AttitudeFragment(fc, () => OnQueue());
     mRover          = new RoverFragment(fc, () => OnQueue());
     mPower          = new PowerFragment(fc, () => OnQueue());
     mPID            = new PIDControllerFragment(fc, () => OnQueue());
     mQueue          = new QueueFragment(fc);
     mQueueEnabled   = false;
 }