Exemplo n.º 1
0
        void InitializeFrom(CANamedArgument namedArg, TypeSigCreatorOptions options)
        {
            if (CAArgumentVM != null)
            {
                CAArgumentVM.PropertyChanged -= caArgumentVM_PropertyChanged;
            }
            CAArgumentVM = new CAArgumentVM(ownerModule, namedArg.Argument, options, null);
            OnPropertyChanged(nameof(CAArgumentVM));
            CAArgumentVM.PropertyChanged += caArgumentVM_PropertyChanged;

            Name    = namedArg.Name;
            IsField = namedArg.IsField;
            ConstantTypeEnumList.SelectedItem = GetConstantType(namedArg.Type, out var newEnumType);
            EnumType = newEnumType;
            CAArgumentVM.StorageType = GetType((ConstantType)ConstantTypeEnumList.SelectedItem);
        }
Exemplo n.º 2
0
 public override string ToString()
 {
     return(string.Format("{0} = {1}", Name, CAArgumentVM.ToString()));
 }