Example #1
0
        public void RemoveAllChildren()
        {
            WillChangeValue("isLeaf");
            WillChangeValue("childNodes");

            InitializeChildren();

            children.RemoveAllObjects();

            DidChangeValue("isLeaf");
            DidChangeValue("childNodes");
        }
        public void Clean()
        {
            _paths.RemoveAllObjects();

            if (NeedBaseLine)
            {
                var signatureBaseLine = new CustomUIBezierPath
                {
                    LineWidth     = 1,
                    LineColor     = UIColor.Black,
                    LineJoinStyle = CGLineJoin.Round
                };

                signatureBaseLine.MoveTo(_baseLineStart);
                signatureBaseLine.AddLineTo(_baseLineEnd);
                signatureBaseLine.Stroke();
                _paths.Add(signatureBaseLine);
            }

            SetNeedsDisplay();
        }
        public void exitMask()
        {
            mReader.UseSelectionMask = backupUseMask;

            for (int i = define.MIN_SELECTION_MASK; i < define.MAX_SELECTION_MASK; i++)
            {
                if ((int)backupSelectMasks.Count < i + 1)
                {
                    mReader.RemoveSelectionMask(i);
                    break;
                }

                AsSelectMaskParam param = backupSelectMasks.GetItem <AsSelectMaskParam>((nuint)i);

                if (param == null)
                {
                    break;
                }
                mReader.SetSelectionMask(i, param);
            }
            backupSelectMasks.RemoveAllObjects();
        }
        public override void Selected(UIPickerView pickerView, nint row, nint component)
        {
            indicatorTypeTextButton.SetTitle(colors[(int)row], UIControlState.Normal);

            indicatorCollection.RemoveAllObjects();
            chart.TechnicalIndicators.RemoveAt(0);

            if (row == 0)
            {
                indicator = new SFADIndicator();
            }
            else if (row == 1)
            {
                indicator = new SFATRIndicator();
            }
            else if (row == 2)
            {
                indicator = new SFBBIndicator();
            }
            else if (row == 3)
            {
                indicator = new SFEMAIndicator();
            }
            else if (row == 4)
            {
                indicator = new SFMACDIndicator();
            }
            else if (row == 5)
            {
                indicator = new SFMomentumIndicator();
            }
            else if (row == 6)
            {
                indicator = new SFRSIIndicator();
            }
            else if (row == 7)
            {
                indicator = new SFSMAIndicator();
            }
            else if (row == 8)
            {
                indicator = new SFStochasticIndicator();
            }
            else if (row == 9)
            {
                indicator = new SFTMAIndicator();
            }

            indicator.SeriesName   = new NSString("Hi-Low");
            indicator.XBindingPath = "XValue";
            indicator.High         = "High";
            indicator.Low          = "Low";
            indicator.Open         = "Open";
            indicator.Close        = "Close";

            SFNumericalAxis axis = new SFNumericalAxis();

            axis.OpposedPosition    = true;
            axis.ShowMajorGridLines = false;
            indicator.YAxis         = axis;

            indicatorCollection = new NSMutableArray();
            indicatorCollection.Add(indicator);
            chart.TechnicalIndicators.Add(indicator);
        }
Example #5
0
 public void ClearDatabases()
 {
     WillChangeValue(nameof(Databases));
     _databases.RemoveAllObjects();
     DidChangeValue(nameof(Databases));
 }