private void SubscribeEvents() { var m = miscInfoPresenter; fuelMenu.OrigIcaoChanged += (sender, e) => { if (m != null) { m.Orig = fuelMenu.OrigIcao; } }; fuelMenu.DestIcaoChanged += (sender, e) => { if (m != null) { m.Dest = fuelMenu.DestIcao; } }; EnableAirportRequests(); SetCursorStatusLabel(); navDataStatusLabel.Click += (s, e) => ShowOptionsForm(); windDataStatusLabel.Click += (s, e) => windFrm.ShowDialog(); trackStatusLabel.Click += (s, e) => trackFrm.ShowDialog(); navBar.OptionLbl.Click += (s, e) => ShowOptionsForm(); }
private void SubscribeEvents() { var origTxtBox = fuelMenu.origTxtBox; origTxtBox.TextChanged += (sender, e) => { miscInfoMenu.SetOrig(origTxtBox.Text.Trim().ToUpper()); }; var destTxtBox = fuelMenu.destTxtBox; destTxtBox.TextChanged += (sender, e) => { miscInfoMenu.SetDest(destTxtBox.Text.Trim().ToUpper()); }; EnableAirportRequests(); SetCursorStatusLabel(); navDataStatusLabel.Click += (s, e) => ShowOptionsForm(); windDataStatusLabel.Click += (s, e) => windFrm.ShowDialog(); trackStatusLabel.Click += (s, e) => trackFrm.ShowDialog(); navBar.OptionLbl.Click += (s, e) => ShowOptionsForm(); }