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