Exemplo n.º 1
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;
                }
            }
        }