コード例 #1
0
ファイル: NotesVM.cs プロジェクト: abarke28/NotesApp
        public NotesVM()
        {
            NewNoteCommand         = new NewNoteCommand(this);
            NewNotebookCommand     = new NewNotebookCommand(this);
            ExitCommand            = new ExitCommand(this);
            DeleteNoteCommand      = new DeleteNoteCommand(this);
            DeleteNotebookCommand  = new DeleteNotebookCommand(this);
            RenameNoteCommand      = new RenameNoteCommand(this);
            RenameNotebookCommand  = new RenameNotebookCommand(this);
            SaveNoteContentCommand = new SaveNoteContentCommand(this);

            Notes     = new ObservableCollection <Note>();
            Notebooks = new ObservableCollection <Notebook>();

            //TODO: Implement genuine login functionality.
            CurrentUser = new User()
            {
                Id        = 1,
                FirstName = "Alex",
                LastName  = "Barker",
                Username  = "******",
                Email     = "*****@*****.**",
                Password  = "******"
            };

            ReadNotebooks();
        }
コード例 #2
0
ファイル: NotesVM.cs プロジェクト: ghood97/EvernoteClone
        public NotesVM()
        {
            NewNotebookCommand = new NewNotebookCommand(this);
            NewNoteCommand     = new NewNoteCommand(this);
            Notebooks          = new ObservableCollection <Notebook>();
            Notes = new ObservableCollection <Note>();

            ReadNotebooks();
        }
コード例 #3
0
        public NotesVM()
        {
            IsEditing          = false;
            NewNotebookCommand = new NewNotebookCommand(this);
            NewNoteCommand     = new NewNoteCommand(this);
            BeginEditCommand   = new BeginEditCommand(this);
            HasEditedCommand   = new HasEditedCommand(this);
            Notebooks          = new ObservableCollection <Notebook>();
            Notes = new ObservableCollection <Note>();

            ReadNotebooks();
            ReadNotes();
        }
コード例 #4
0
ファイル: NotesVM.cs プロジェクト: sukhrajklair/NotesApp
        public NotesVM()
        {
            NewNotebookCommand = new NewNotebookCommand(this);
            NewNoteCommand     = new NewNoteCommand(this);
            BeginEditCommand   = new BeginEditCommand(this);
            HasEditedCommand   = new HasEditedCommand(this);
            DeleteCommand      = new DeleteCommand(this);

            Notebooks = new ObservableCollection <Notebook>();
            Notes     = new ObservableCollection <Note>();

            //ReadNotebooks();
            //ReadNotes();
        }
コード例 #5
0
        public NotesVM()
        {
            IsEditing = false; //ContextMenu boolean controller

            NewNotebookCommand = new NewNotebookCommand(this);
            NewNoteCommand     = new NewNoteCommand(this);
            BeginEditCommand   = new BeginEditCommand(this);
            HasEditedCommand   = new HasEditedCommand(this);

            //Inicializamos listas
            Notebooks = new ObservableCollection <NotebookModel>();
            Notes     = new ObservableCollection <NoteModel>();

            //Y leemos nada más empezar de la bbdd
            ReadNotebooks();
            ReadNotes();
        }
コード例 #6
0
ファイル: NotesVM.cs プロジェクト: Gust2007/NotesApp
        public NotesVM()
        {
            // create tables in db as first task
            DatabaseHelper.CreateTables <Notebook>();
            DatabaseHelper.CreateTables <Note>();

            NewNotebookCommand        = new NewNotebookCommand(this);
            NewNoteCommand            = new NewNoteCommand(this);
            BeginEditCommand          = new BeginEditCommand(this);
            HasEditedCommand          = new HasEditedCommand(this);
            CancelNotebookEditCommand = new CancelNotebookEditCommand();

            HasEditedNoteCommand  = new HasEditedNoteCommand(this);
            CancelNoteEditCommand = new CancelNoteEditCommand();

            Notebooks = new ObservableCollection <Notebook>();
            Notes     = new ObservableCollection <Note>();
        }
コード例 #7
0
        public NotesVM()
        {
            IsEditing             = false;
            IsEditingNote         = false;
            NewNotebookCommand    = new NewNotebookCommand(this);
            NewNoteCommand        = new NewNoteCommand(this);
            DeleteNotebookCommand = new DeleteNotebookCommand(this);
            DeleteNoteCommand     = new DeleteNoteCommand(this);
            BeginEditCommand      = new BeginEditCommand(this);
            IsEditedCommand       = new IsEditedCommand(this);
            BeginEditNoteCommand  = new BeginEditNoteCommand(this);
            IsEditedNoteCommand   = new IsEditedNoteCommand(this);

            Notebooks = new ObservableCollection <Notebook>();
            Notes     = new ObservableCollection <Note>();
            FontSizes = new List <double>()
            {
                8, 9, 10, 11, 12, 14, 16, 28, 48, 72
            };

            ReadNotebooks();
            ReadNotes();
        }
コード例 #8
0
 public NotesVM()
 {
     NewNotebookCommand = new NewNotebookCommand(this);
     NewNoteCommand     = new NewNoteCommand(this);
 }