Example #1
0
 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;
     }
 }
Example #2
0
 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;
     }
 }
Example #3
0
 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;
     }
 }
Example #4
0
        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;
                }
            }
        }