コード例 #1
0
ファイル: GoalViewModel.cs プロジェクト: LailiRfh/MTR
 /// <summary>
 /// Initializes a new instance of the <see cref="GoalViewModel"/> class
 /// </summary>
 public GoalViewModel()
     : base()
 {
     this.SortItems     = new RelayCommand(this.HandleSortItems);
     this.AddNewSubtask = new RelayCommand(this.HandleAddNewSubtask);
     this.DeleteSubtask = new RelayCommand(this.HandleDeleteSubtask);
     this.itemPool      = DataTranslator <Goal> .Deserialize();
 }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NoteViewModel"/> class
        /// </summary>
        public NoteViewModel()
            : base()
        {
            this.SortItems = new RelayCommand(this.HandleSortItems);
            this.itemPool  = DataTranslator <Note> .Deserialize();

            try
            {
                client = new FireSharp.FirebaseClient(fcon);
            }
            catch
            {
            }
        }
コード例 #3
0
ファイル: GoalViewModel.cs プロジェクト: hervibest/MTR
        public GoalViewModel()
            : base()
        {
            this.SortItems     = new RelayCommand(this.HandleSortItems);
            this.AddNewSubtask = new RelayCommand(this.HandleAddNewSubtask);
            this.DeleteSubtask = new RelayCommand(this.HandleDeleteSubtask);
            this.itemPool      = DataTranslator <Goal> .Deserialize();

            try
            {
                client = new FireSharp.FirebaseClient(fcon);
            }
            catch
            {
            }
        }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MeetingViewModel"/> class
 /// </summary>
 public MeetingViewModel()
     : base()
 {
     this.SortItems = new RelayCommand(this.Sort);
     this.itemPool  = DataTranslator <Meeting> .Deserialize();
 }
コード例 #5
0
ファイル: NoteViewModel.cs プロジェクト: LailiRfh/MTR
 /// <summary>
 /// Initializes a new instance of the <see cref="NoteViewModel"/> class
 /// </summary>
 public NoteViewModel()
     : base()
 {
     this.SortItems = new RelayCommand(this.HandleSortItems);
     this.itemPool  = DataTranslator <Note> .Deserialize();
 }