Beispiel #1
0
        public async void LoadStories()
        {
            List <Story> st = await StoryPer.LoadSprintBacklog(LeSingleton.SelectedSprint.Sprint_Id);

            if (st != null)
            {
                foreach (Story storey in st)
                {
                    switch (storey.Story_State)
                    {
                    case "ToDo":
                        TodoCollection.Add(storey);
                        break;

                    case "Doing":
                        DoingCollection.Add(storey);
                        break;

                    case "Done":
                        DoneCollection.Add(storey);
                        break;

                    case "DoneDone":
                        DoneDoneCollection.Add(storey);
                        break;
                    }
                }
            }
        }
Beispiel #2
0
        public async void ChangeState(string name)
        {
            string removeState = DragStory.Story_State;

            DragStory.Story_State = name;
            bool success = await StoryPer.ChangeState(DragStory.Story_Id, DragStory);

            if (success)
            {
                switch (DragStory.Story_State)
                {
                case "ToDo":
                    TodoCollection.Add(DragStory);
                    break;

                case "Doing":
                    DoingCollection.Add(DragStory);
                    break;

                case "Done":
                    DoneCollection.Add(DragStory);
                    break;

                case "DoneDone":
                    DoneDoneCollection.Add(DragStory);
                    break;
                }

                switch (removeState)
                {
                case "ToDo":
                    TodoCollection.Remove(DragStory);
                    break;

                case "Doing":
                    DoingCollection.Remove(DragStory);
                    break;

                case "Done":
                    DoneCollection.Remove(DragStory);
                    break;

                case "DoneDone":
                    DoneDoneCollection.Remove(DragStory);
                    break;
                }
            }
            else
            {
                DragStory.Story_State = removeState;
            }
        }
Beispiel #3
0
        private void ProcessKeyword(Doing doing, ProcessKeywordMode mode)
        {
            //更新关键字模式,如果这个记录并不需要处理,直接退出
            if (mode == ProcessKeywordMode.TryUpdateKeyword)
            {
                if (AllSettings.Current.ContentKeywordSettings.ReplaceKeywords.NeedUpdate <Doing>(doing) == false)
                {
                    return;
                }
            }

            DoingCollection doings = new DoingCollection();

            doings.Add(doing);

            ProcessKeyword(doings, mode);
        }