private void BarStyle() { var G = TopLabel(); UIButton backBt = new UIButton(new CGRect(16, G.Frame.Height / 4 + 8, G.Frame.Height / 2, G.Frame.Height / 2)); backBt.SetBackgroundImage(UIImage.FromFile("Images/back6.png"), UIControlState.Normal); backBt.BackgroundColor = UIColor.Clear; // View.Add (backBt); // backBt.TouchUpInside += BackBt_TouchUpInside; UIButton rightBt = new UIButton(new CGRect(G.Frame.Right - backBt.Frame.GetMaxX() - 56, backBt.Frame.Y, 32, 32)); rightBt.SetBackgroundImage(UIImage.FromFile("Images/agenda29.png"), UIControlState.Normal); rightBt.BackgroundColor = UIColor.Clear; View.Add(rightBt); UIButton sBt = new UIButton(new CGRect(rightBt.Frame.GetMaxX(), rightBt.Frame.GetMinY(), G.Frame.Width - rightBt.Frame.GetMaxX(), 32)); sBt.SetTitle("Schedule", UIControlState.Normal); sBt.Font = UIFont.FromName(Util.FontMain, 12); sBt.SetTitleColor(UIColor.Black, UIControlState.Normal); View.Add(sBt); sBt.TouchUpInside += delegate { DaysCompletedViewController dVC = new DaysCompletedViewController(); dVC.plan = new PlanModel(); dVC.plan = plan; PresentViewController(dVC, true, null); }; }
public DaysCompletedTableCell(List <int> _days, int _index, nfloat _cellHt, DaysCompletedViewController _daysVC) { days = _days; index = _index; cellHt = _cellHt; daysVC = _daysVC; dayNmb = new UILabel() { TextColor = UIColor.Black, Font = UIFont.FromName(Util.FontMain, 32), TextAlignment = UITextAlignment.Left, BackgroundColor = UIColor.Clear }; status = new UILabel() { TextColor = Util.Grey, Font = UIFont.FromName(Util.FontMain, 12), TextAlignment = UITextAlignment.Left, BackgroundColor = UIColor.Clear }; icon = new UIImageView() { BackgroundColor = UIColor.Clear, ContentMode = UIViewContentMode.ScaleAspectFill }; styleBar = new UILabel() { BackgroundColor = Util.BackgroundGrey, Text = "" }; ContentView.Add(dayNmb); ContentView.Add(status); ContentView.Add(icon); ContentView.Add(styleBar); }
public DaysCompletedTableSource(List <int> _days, string _id, DaysCompletedViewController _daysVC) { days = _days; id = _id; daysVC = _daysVC; }