コード例 #1
0
        /// <summary>User has clicked an axis.</summary>
        /// <param name="axisType">Type of the axis.</param>
        private void OnAxisClick(Axis.AxisType axisType)
        {
            AxisPresenter AxisPresenter = new AxisPresenter();

            currentPresenter = AxisPresenter;
            AxisView A = new AxisView(graphView as GraphView);

            graphView.ShowEditorPanel(A.MainWidget, "Axis options");
            AxisPresenter.Attach(GetAxis(axisType), A, explorerPresenter);
        }
コード例 #2
0
ファイル: GraphPresenter.cs プロジェクト: pre078/ApsimX
        /// <summary>User has clicked an axis.</summary>
        /// <param name="axisType">Type of the axis.</param>
        private void OnAxisClick(Axis.AxisType axisType)
        {
            AxisPresenter AxisPresenter = new AxisPresenter();

            currentPresenter = AxisPresenter;
            AxisView A = new AxisView();

            graphView.ShowEditorPanel(A);
            AxisPresenter.Attach(GetAxis(axisType), A, explorerPresenter);
        }
コード例 #3
0
 private void createXInputControls()
 {
     foreach (var buttonInput in XInputHelper.Buttons)
     {
         var inputButtonView = new ButtonView(buttonInput);
         Model.XInputButtonViews.Add(inputButtonView);
     }
     foreach (var axisInput in XInputHelper.Axes)
     {
         var inputAxisView = new AxisView(axisInput);
         Model.XInputAxisViews.Add(inputAxisView);
     }
 }
コード例 #4
0
ファイル: GraphPresenter.cs プロジェクト: oseledets/ApsimX
        /// <summary>User has clicked an axis.</summary>
        /// <param name="axisType">Type of the axis.</param>
        private void OnAxisClick(Axis.AxisType axisType)
        {
            if (currentPresenter != null)
            {
                currentPresenter.Detach();
            }
            AxisPresenter AxisPresenter = new AxisPresenter();

            currentPresenter = AxisPresenter;
            AxisView A         = new AxisView(graphView as GraphView);
            string   dimension = (axisType == Axis.AxisType.Left || axisType == Axis.AxisType.Right) ? "Y" : "X";

            graphView.ShowEditorPanel(A.MainWidget, dimension + "-Axis options");
            AxisPresenter.Attach(GetAxis(axisType), A, explorerPresenter);
        }
コード例 #5
0
        /// <summary>User has clicked an axis.</summary>
        /// <param name="axisType">Type of the axis.</param>
        private void OnAxisClick(AxisPosition axisType)
        {
            if (CurrentPresenter != null)
            {
                CurrentPresenter.Detach();
            }

            AxisPresenter axisPresenter = new AxisPresenter();

            CurrentPresenter = axisPresenter;
            AxisView a         = new AxisView(graphView as GraphView);
            string   dimension = (axisType == AxisPosition.Left || axisType == AxisPosition.Right) ? "Y" : "X";

            graphView.ShowEditorPanel(a.MainWidget, dimension + "-Axis options");
            axisPresenter.Attach(GetAxis(axisType), a, explorerPresenter);
        }
コード例 #6
0
 private void createInputControls()
 {
     foreach (var buttonInput in controller.InputDevice.GetButtons())
     {
         var inputButtonView = new ButtonView(buttonInput);
         Model.InputButtonViews.Add(inputButtonView);
     }
     if (controller.InputDevice.HasAxes)
     {
         foreach (var axisInput in controller.InputDevice.GetAxes())
         {
             var inputAxisView = new AxisView(axisInput);
             Model.InputAxisViews.Add(inputAxisView);
         }
     }
 }
コード例 #7
0
 public override void MakeWindowCalculation() => WindowCalculation = new AxisView
 {
     DataContext = new PremagAxisVM(Logger)
 };