public void RemoveCurrentCustomState()
 {
     CurrentCustomState.WorkItemStates.Clear();
     CustomStates.Remove(CurrentCustomState);
     CurrentCustomState = null;
     OnPropertyChanged("CustomStates");
 }
        public void AddCustomState(string name)
        {
            ICustomState customState = DataObjectFactory.CreateObject <ICustomState> ();

            customState.Name  = name;
            customState.Color = DefaultStateColor;
            CustomStates.Add(customState);
        }