Exemplo n.º 1
0
        public AlternateRowPresenter(
            IAlternateRowView view,
            Locator <AppOptions> appOptionsLocator,
            AirwayNetwork airwayNetwork,
            ISelectedProcedureProvider destController,
            Locator <CountryCodeCollection> checkedCodesLocator,
            Func <AvgWindCalculator> windCalcGetter,
            ExportMenu exportMenu)
        {
            this.View = view;

            ContextMenuPresenter = new ActionContextMenuPresenter(
                view,
                appOptionsLocator,
                airwayNetwork,
                destController,
                view,
                checkedCodesLocator,
                windCalcGetter,
                exportMenu);

            this.appOptions     = appOptionsLocator;
            this.airwayNetwork  = airwayNetwork;
            this.destController = destController;
        }
Exemplo n.º 2
0
 public RouteFinderPresenter(IRouteFinderView view, RouteFinderModel model,
                             ExportMenu exportMenu)
 {
     this.view       = view;
     this.model      = model;
     this.exportMenu = exportMenu;
 }
Exemplo n.º 3
0
        public static void ExportRouteFiles(
            IMessageDisplay view,
            RouteGroup Route,
            IEnumerable <ExportCommand> cmds,
            MultiMap <string, Navaid> Navaids,
            AirportManager airportList,
            ExportMenu menu)
        {
            if (Route == null)
            {
                view.ShowMessage("Please find or analyze a route first.", MessageLevel.Info);
                return;
            }

            using (var frm = GetForm(new Size(1, 1)))
            {
                menu.Location    = new Point(0, 0);
                menu.Route       = Route;
                menu.Navaids     = Navaids;
                menu.AirportList = airportList;

                frm.AutoSizeMode    = AutoSizeMode.GrowAndShrink;
                frm.AutoSize        = true;
                frm.FormBorderStyle = FormBorderStyle.FixedToolWindow;
                frm.Controls.Add(menu);
                frm.ShowDialog();
                frm.Controls.Remove(menu);
            }
        }
Exemplo n.º 4
0
        public void Init(RouteFinderModel model, Form MainForm, ExportMenu exportMenu)
        {
            this.model     = model;
            this.MainForm  = MainForm;
            this.presenter = new RouteFinderPresenter(this, model, exportMenu);

            InitOrigDestControls();
            SetRouteActionMenu();
            SetRouteOptionMenu();
            routeRichTxtBox.UpperCaseOnly();
            routeSummaryLbl.Text = "";
        }
Exemplo n.º 5
0
    private void Awake()
    {
        // queue = new Queue<EquationSet>();
        solver    = new ExpressionSolver();
        positions = new List <Vector3>();
        normals   = new List <Vector3>();
        uvs       = new List <Vector2>();
        faces     = new List <int>();
        gameObject.SetActive(false);
        ExportMenu em = this.transform.Find("ExportMenu").gameObject.GetComponent <ExportMenu>();

        if (em != null)
        {
            em.Initialize(this);
        }
    }
 public ActionContextMenuPresenter(
     ISupportActionContextMenu view,
     Locator <AppOptions> appOptionsLocator,
     AirwayNetwork airwayNetwork,
     ISelectedProcedureProvider origProvider,
     ISelectedProcedureProvider destProvider,
     Locator <CountryCodeCollection> checkedCodesLocator,
     Func <AvgWindCalculator> windCalcGetter,
     ExportMenu exportMenu)
 {
     this.view = view;
     this.appOptionsLocator   = appOptionsLocator;
     this.airwayNetwork       = airwayNetwork;
     this.origProvider        = origProvider;
     this.destProvider        = destProvider;
     this.checkedCodesLocator = checkedCodesLocator;
     this.windCalcGetter      = windCalcGetter;
     this.exportMenu          = exportMenu;
 }
Exemplo n.º 7
0
 internal KeyboardInputResponder(ExportMenu exportMenu)
 {
     this.exportMenu = exportMenu;
 }