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); }
public ChangeBarier(State nextState, int index, InterfaceManager manager) : base(nextState) { this.index = index; this.manager = manager; }
public InputSyntheticBarier(State nextState, InterfaceManager manager) : base(nextState) { this.manager = manager; }
public InputProfilePoints(State nextState, InterfaceManager manager) : base(nextState) { this.manager = manager; }
public InputIntervalParameters(State nextState, InterfaceManager manager) : base(nextState) { this.manager = manager; }
public State(State nextState) { next = nextState; }
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(); }