Example #1
0
        internal static FieldFilterListWrapper GetInstance()
        {
            var real = new FieldFilterList();

            RealInstanceFactory(ref real);
            var instance = (FieldFilterListWrapper)FieldFilterListWrapper.GetWrapper(real);

            InstanceFactory(ref instance);
            if (instance == null)
            {
                Assert.Inconclusive("Could not Create Test Instance");
            }
            return(instance);
        }
        private void Save_Click(object sender, EventArgs e)
        {
            PipelineScreen  mainScreen = FormWrapper.EncompassForm.Controls.Find("pipelineScreen", true)[0] as PipelineScreen;
            FieldFilterList filter     = mainScreen.GetCurrentFilter();

            cdo.Filters.Add(new PipelineFilter()
            {
                Name         = Filter.Text,
                Filter       = filter,
                Public       = false,
                Owner        = EncompassHelper.User.ID,
                Folder       = GetSelectedFolderList(),
                PipelineView = View.Text
            });

            CustomDataObject.Save <PipelineFilterCDO>(PipelineFilterCDO.Key, cdo);
            LoadFilters(Filter);
            Filter.Text = string.Empty;
        }
Example #3
0
        /// <summary>
        /// Recupera os status disponiveis de um workitem
        /// </summary>
        /// <param name="currentState"></param>
        /// <param name="type">O tipo do Work Item</param>
        /// <returns></returns>
        public IEnumerable<string> GetNextStates(string currentState, string type)
        {
            var filters = new FieldFilterList();
            filters.Add(new FieldFilter(project.WorkItemTypes[type].FieldDefinitions[CoreField.State], currentState));

            return project.WorkItemTypes[type].FieldDefinitions[CoreField.State].FilteredAllowedValues(filters).Cast<string>();
        }
Example #4
0
 static partial void RealInstanceFactory(ref FieldFilterList real, [CallerMemberName] string callerName        = "");