예제 #1
0
 public MapForm(Point initialPosition, IPSController controller)
 {
     InitializeComponent();
     this.controller = controller;
     controller.PositionUpdated += new IPSController.PositionEventHandler(this.HandleEvent);
     this.Location = initialPosition;
 }
예제 #2
0
        public ConfigForm(IPSController controller)
        {
            InitializeComponent();
            this.controller = controller;
            try
            {
                IPSConfiguration.Load();
                txt_callsign.Text = IPSConfiguration.CALLSIGN;
                txt_vaid.Text = IPSConfiguration.VA_ID;
                chk_aot.Checked = IPSConfiguration.AUTO_ALWAYSONTOP;
                chk_fp.Checked = IPSConfiguration.AUTOLOAD_FLIGHTPLAN;
                ckb_trasponder.Checked = IPSConfiguration.AUTO_TRASPONDER;
                string[] tmp = ChecklistReader.ReadAvailableChecklists();
                foreach (string s in tmp)
                {
                    cbo_chk.Items.Add(s);
                }
                if (IPSConfiguration.CURRENT_CHECKLIST != null)
                {
                    cbo_chk.SelectedItem = IPSConfiguration.CURRENT_CHECKLIST;
                }
                ttsVolume.Value = IPSConfiguration.TTS_VOLUME;

            }
            catch
            {
                txt_callsign.Text = "xxxxxxx";
                txt_vaid.Text = "xxxx";
                chk_aot.Checked = false;
                chk_fp.Checked = false;
            }
        }
예제 #3
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     //Costruzione dei moduli principali dell'applicazione:
     //COstruzione della vista
     MainForm view = new MainForm();
     //Corstruizione del modello
     IPSController controller = new IPSController(view);
     view.Controller = controller;
     //Avvio vero e proprio dell'applicazione
     Application.Run(view);
 }
예제 #4
0
 public SpeakingThread(IPSController ctrl)
 {
     this.ctrl = ctrl;
 }