Beispiel #1
0
 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);
 }
Beispiel #2
0
        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;
        }
Beispiel #3
0
 public CardEditorView(Desk desk, Card card)
 {
     __presenter = new CardEditorPresenter(this, desk, card);
     this.View.BackgroundColor = UIColor.White;
 }
Beispiel #4
0
 public DeskViewerView(Desk desk)
 {
     __presenter = new DeskViewerPresenter(this, desk);
     this.View.BackgroundColor = UIColor.White;
     this.AutomaticallyAdjustsScrollViewInsets = false;
 }