public InterfaceManager(ZedGraph.ZedGraphControl zgc, ListBox listBox, ComboBox comboBox)
        {
            zedGraphControl = zgc;
            zedGraphPane = zgc.GraphPane;
            bariersListBox = listBox;
            surfaceTypeComboBox = comboBox;

            _R = 20;
            _hMax = 200;
            _antennaH = 20;
            _lambda = 2.5;

            zedGraphControl.IsShowContextMenu = false;
            ZedGraph.Line.Default.IsSmooth = true;
            ZedGraph.Line.Default.SmoothTension = 0.3F;
            ZedGraph.GraphPane.Default.NearestTol = 10;
            zedGraphControl.EditButtons = MouseButtons.Left;
            zedGraphPane.Title.Text = "Профиль интервала РРЛ";
            zedGraphPane.XAxis.Title.Text = "Расстояние";
            zedGraphPane.YAxis.Title.Text = "Высота";

            FinalState finalState = new FinalState(this);
            InputBarier inputBarierState = new InputBarier(null, this);
            InputProfilePoints inputProfilePoints =  new InputProfilePoints(inputBarierState, this);
            currentState = new InputIntervalParameters(inputProfilePoints, this);
        }
Example #2
0
 public ChangeBarier(State nextState, int index, InterfaceManager manager)
     : base(nextState)
 {
     this.index = index;
     this.manager = manager;
 }
Example #3
0
 public InputSyntheticBarier(State nextState, InterfaceManager manager)
     : base(nextState)
 {
     this.manager = manager;
 }
Example #4
0
 public InputProfilePoints(State nextState, InterfaceManager manager)
     : base(nextState)
 {
     this.manager = manager;
 }
Example #5
0
 public InputIntervalParameters(State nextState, InterfaceManager manager)
     : base(nextState)
 {
     this.manager = manager;
 }
Example #6
0
 public State(State nextState)
 {
     next = nextState;
 }
Example #7
0
 public InitialState(State nextState, InterfaceManager manager)
     : base(nextState)
 {
     this.manager = manager;
 }
 public void goNextState(State state)
 {
     currentState.doAfter();
     currentState = state;
     currentState.doBefore();
 }
 public void goNextState()
 {
     currentState.doAfter();
     currentState = currentState.getNext();
     currentState.doBefore();
 }