protected override void OnCreate()
        {
            SaveCommand   = new RelayCommand(o => SaveTask());
            AddTagCommand = new RelayCommand(async o => await AddTag());

            Projects        = new ExObservableCollection <AsanaProject>();
            Users           = new ExObservableCollection <AsanaUser>();
            Followers       = new ExObservableCollection <AsanaUser>();
            Tags            = new ExObservableCollection <AsanaTag>();
            OldTagsIds      = new List <long>();
            OldFollowersIds = new List <long>();


            Statuses = new ExObservableCollection <TaskStatus>()
            {
                new TaskStatus()
                {
                    name = EAsanaTaskStatus.inbox.ToString()
                },
                new TaskStatus()
                {
                    name = EAsanaTaskStatus.later.ToString()
                },
                new TaskStatus()
                {
                    name = EAsanaTaskStatus.today.ToString()
                },
                new TaskStatus()
                {
                    name = EAsanaTaskStatus.upcoming.ToString()
                }
            };
            IsBusy = true;
        }
 protected override void OnCreate()
 {
     Projects = new ExObservableCollection <AsanaProject>();
     // ArchiveProjects = new ExtendedObservableCollection<AsanaProject>();
     Tags              = new ExObservableCollection <AsanaTag>();
     RefreshCommand    = new RelayCommand <object>(async(o) => await this.Refresh(null));
     WorkspacesCommand = new RelayCommand <object>(ChangeWorkspace);
     PinToStartCommand = new RelayCommand(PinToStart);
 }
Exemplo n.º 3
0
        public BLevelClass()
        {
            ClassesOfA = new ExObservableCollection <CBaseClass>();

            CBaseClass firstClassA  = new CBaseClass(0, true);
            CBaseClass secondClassA = new CBaseClass(1, true);

            ClassesOfA.Insert(0, firstClassA);
            ClassesOfA.Insert(1, secondClassA);
        }
Exemplo n.º 4
0
        public ShellClass()
        {
            BaseData = new ExObservableCollection <BaseClass>();

            BaseClass firstClassA  = new BaseClass(0, false);
            BaseClass secondClassA = new BaseClass(1, false);

            BaseData.Insert(0, firstClassA);
            BaseData.Insert(1, secondClassA);
        }
Exemplo n.º 5
0
        protected override void OnCreate()
        {
            Workspaces       = new ExObservableCollection <AsanaWorkspace>();
            Users            = new ExObservableCollection <AsanaUser>();
            MyTasks          = new ExObservableCollection <AsanaTask>();
            DueTodayTasks    = new ExObservableCollection <AsanaTask>();
            DueTomorrowTasks = new ExObservableCollection <AsanaTask>();
            DueWeekendTasks  = new ExObservableCollection <AsanaTask>();

            RefreshCommand = new DelegateCommand(Refresh);
            AddTaskCommand = new DelegateCommand(AddTask);
            IsBusy         = true;
        }
Exemplo n.º 6
0
 protected override void OnCreate()
 {
     Tasks                         = new ExObservableCollection <AsanaTask>();
     Stories                       = new ExObservableCollection <AsanaStory>();
     ProjectsCommand               = new RelayCommand(ChangeProject);
     PinToStartCommand             = new RelayCommand(PinToStart);
     ShowProjectDescriptionCommand = new RelayCommand(o =>
     {
         var w = new ProjectDescriptionPopup();
         w.Initialize(Project.notes);
         w.Show();
     });
 }
        protected override void OnCreate()
        {
            Projects = new ExObservableCollection <AsanaProject>();

            Tags = new ExObservableCollection <AsanaTag>();

            RefreshCommand         = new DelegateCommand(async(o) => await this.Refresh(null));
            PinToStartCommand      = new DelegateCommand(PinToStart);
            AddTaskCommand         = new DelegateCommand(AddTask);
            SelectWorkspaceCommand = new DelegateCommand(SelectWorkspaces);

            AddProjectCommand = new DelegateCommand(AddProject);
        }
Exemplo n.º 8
0
 protected override void OnCreate()
 {
     Comments           = new ExObservableCollection <AsanaStory>();
     Subtasks           = new ExObservableCollection <AsanaTask>();
     Histories          = new ExObservableCollection <AsanaStory>();
     SendCommentCommand = new RelayCommand(o => SendSomment());
     RefreshCommand     = new RelayCommand(async o => await RefreshData());
     ShareCommand       = new RelayCommand(o => Share());
     SetForTodayCommand = new RelayCommand(async o =>
     {
         await UpdateTask(false, DateTime.Today);
     });
     SetForTomorrowCommand = new RelayCommand(async o =>
     {
         await UpdateTask(false, DateTime.Today.AddDays(1));
     });
 }
 protected override void OnCreate()
 {
     Workspaces = new ExObservableCollection <AsanaWorkspace>();
     Users      = new ExObservableCollection <AsanaUser>();
 }
Exemplo n.º 10
0
 protected override void OnCreate()
 {
     Tasks = new ExObservableCollection <AsanaTask>();
 }
 protected override void OnCreate()
 {
     Tasks             = new ExObservableCollection <AsanaTask>();
     PinToStartCommand = new RelayCommand(PinToStart);
 }