예제 #1
0
 public MultiValueParamData(string Name, string Operation, Dictionary <Guid, string> ValueList, Dictionary <Guid, string> Templates)
 {
     this.Name      = Name;
     this.Operation = OperationList.IndexOf(Operation);
     this.Values    = new ObservableCollection <KeyValuePair <Guid, string> >(ValueList);
     this.Templates = new ObservableCollection <KeyValuePair <Guid, string> >(Templates);
 }
예제 #2
0
        public int RemoveMember(Member member)
        {
            var index = -1;

            if (member is Field field)
            {
                index = FieldList.IndexOf(field);
                if (FieldList.Remove(field))
                {
                    Changed();
                }
            }
            else if (member is Operation operation)
            {
                index = OperationList.IndexOf(operation);
                if (OperationList.Remove(operation))
                {
                    Changed();
                }
            }

            return(index);
        }