void QualityGraphicDraw() { if (_buttonQualityCliked) { _quality.DeleteTouchView(); _quality.RemoveFromSuperview(); _buttonQualityCliked = false; } else { _quality = new GraphicsViewWorker(_data.Item2, WhatServiceWork.Quality, UIColor.FromRGB(255, 110, 23), GraphicViewWindow.Bounds, GraphicViewWindow); GraphicViewWindow.AddSubview(_quality); _buttonQualityCliked = true; } }
void AllGraphicDraw() { if (_buttonServiceCliked) { _all.DeleteTouchView(); _all.RemoveFromSuperview(); _buttonAllCliked = false; } else { _service = new GraphicsViewWorker(_data.Item2, WhatServiceWork.Service, UIColor.FromRGB(61, 147, 219), GraphicViewWindow.Bounds, GraphicViewWindow); GraphicViewWindow.AddSubview(_service); _buttonAllCliked = true; } }
void CostGraphicDraw() { if (_buttonCostCliked) { _cost.DeleteTouchView(); _cost.RemoveFromSuperview(); _buttonCostCliked = false; } else { _cost = new GraphicsViewWorker(_data.Item2, WhatServiceWork.Cost, UIColor.FromRGB(71, 201, 175), GraphicViewWindow.Bounds, GraphicViewWindow); GraphicViewWindow.AddSubview(_cost); _buttonCostCliked = true; } }