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; } }
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 CreateOsXMonthOrDaysVector(System.Collections.Generic.Dictionary <string, System.Collections.Generic.Dictionary <string, string> > resource) { nfloat xFirstStep = 40f; nfloat xStep = (250) / (nfloat)(resource.Count - 1); osXview = new UIView(new CGRect(0, 0, 320, GraphicViewWindow.Frame.Height)); GraphicViewWindow.Add(osXview); nfloat heightOfFrame = GraphicsViewWorker.CountFrameHeight(osXview.Frame.Height); osXview.BackgroundColor = UIColor.Clear; if (resource.Count < 15) { foreach (var item in resource) { UILabel label = new UILabel(new CGRect(xFirstStep - 12.5f, heightOfFrame, 25, 25)); label.TextAlignment = UITextAlignment.Center; label.Font = UIFont.FromName("HelveticaNeue-Light", 10f); label.TextColor = UIColor.LightGray; label.Text = Enum.GetName(typeof(Months), Convert.ToInt32(item.Key)); osXview.Add(label); xFirstStep += xStep; } } }
void ReleaseDesignerOutlets() { if (BottomMenu != null) { BottomMenu.Dispose(); BottomMenu = null; } if (btnAll != null) { btnAll.Dispose(); btnAll = null; } if (btnComments != null) { btnComments.Dispose(); btnComments = null; } if (btnCost != null) { btnCost.Dispose(); btnCost = null; } if (btnHalfYear != null) { btnHalfYear.Dispose(); btnHalfYear = null; } if (btnMonth != null) { btnMonth.Dispose(); btnMonth = null; } if (btnQuality != null) { btnQuality.Dispose(); btnQuality = null; } if (btnQuarter != null) { btnQuarter.Dispose(); btnQuarter = null; } if (btnRates != null) { btnRates.Dispose(); btnRates = null; } if (btnService != null) { btnService.Dispose(); btnService = null; } if (btnStatistic != null) { btnStatistic.Dispose(); btnStatistic = null; } if (btnYear != null) { btnYear.Dispose(); btnYear = null; } if (GraphicViewWindow != null) { GraphicViewWindow.Dispose(); GraphicViewWindow = null; } if (MainBackGroubd != null) { MainBackGroubd.Dispose(); MainBackGroubd = null; } if (ServiceWindow != null) { ServiceWindow.Dispose(); ServiceWindow = null; } if (TopMenuView != null) { TopMenuView.Dispose(); TopMenuView = null; } }