public DeskEditorView(Desk desk) { __presenter = new DeskEditorPresenter(this, desk); this.View.BackgroundColor = UIColor.White; this.NavigationItem.HidesBackButton = true; this.EdgesForExtendedLayout = UIRectEdge.None; this.Title = string.Format("Edit \"{0}\"", desk.Name); }
public static List<Desk> GetAllDesks() { List<Desk> allDesks = new List<Desk>(); string selectDesks = string.Format("SELECT * FROM {0}", TABLE_NAME); DataTable data = SQLiteLinker.GetDataTable(selectDesks); foreach (DataRow singleRow in data.Rows) { Desk newDesk = new Desk(); newDesk.LoadData(singleRow); allDesks.Add(newDesk); } return allDesks; }
public CardEditorView(Desk desk, Card card) { __presenter = new CardEditorPresenter(this, desk, card); this.View.BackgroundColor = UIColor.White; }
public DeskViewerView(Desk desk) { __presenter = new DeskViewerPresenter(this, desk); this.View.BackgroundColor = UIColor.White; this.AutomaticallyAdjustsScrollViewInsets = false; }