Exemplo n.º 1
0
        private void SetRouteActionControl()
        {
            routeActionMenu = new ActionContextMenu(
                appOptionsLocator,
                airwayNetwork,
                origController,
                destController,
                checkedCodesLocator,
                () => GetWindCalculator(),
                routeDisLbl,
                DistanceDisplayStyle.Long,
                () => mainRouteRichTxtBox.Text,
                s => mainRouteRichTxtBox.Text = s,
                ParentForm);

            routeActionMenu.Subscribe();
            showRouteActionsBtn.Click += (s, e) =>
                                         routeActionMenu.Show(showRouteActionsBtn, new Point(0, showRouteActionsBtn.Height));
        }
Exemplo n.º 2
0
 public void Subsribe()
 {
     Controller.Subscribe();
     Row.ShowMoreBtn.Click += ShowBtns;
     OptionMenu.Subscribe();
 }