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