示例#1
0
        public ObservableValue(int number, Cyclogram cyclogram, IOperation operation)
        {
            _operation = operation;
            _step      = cyclogram.Steps[number] as OperationsStep;
            Number     = number;

            _step.CollectionChanged += _step_CollectionChanged;
        }
示例#2
0
        public static void DrawCyclogram(string[] titles, float[][] mas, List <float[]> cp, int combobox)
        {
            GraphPane     pane = Cyclogram.GraphPane;
            PointPairList list;
            LineItem      myCurve;

            pane.CurveList.Clear();
            for (int i = 0; i < MDIParent.p; i++)
            {
                list = new PointPairList();
                for (int j = 0; j <= MDIParent.z; j++)
                {
                    list.Add(mas[i][j], j);
                }
                myCurve            = pane.AddCurve(titles[i], list, Color.Blue, SymbolType.None);
                myCurve.Line.Width = 1.6f;
            }
            if (combobox != 0)
            {
                foreach (var a in cp)
                {
                    list = new PointPairList
                    {
                        { a[0], a[1] },
                        { a[0], a[1] + 1 }
                    };
                    myCurve              = pane.AddCurve("Критическое сближение", list, Color.Red, SymbolType.None);
                    myCurve.Line.Style   = System.Drawing.Drawing2D.DashStyle.Custom;
                    myCurve.Line.DashOff = 2;
                    myCurve.Line.DashOn  = 3;
                    myCurve.Line.Width   = 2f;
                }
            }
            Cyclogram.AxisChange();
            Cyclogram.Invalidate();
        }
示例#3
0
 public BindableCyclogramElement(Cyclogram cyclogram, IOperation operation)
 {
     _cyclogram = cyclogram;
     _values    = new List <ObservableValue>();
     Operation  = operation;
 }