public ModifyListChildWindow(DefaultScope.List scopeList) { InitializeComponent(); list = ContextModel.Instance.GetList(scopeList); NewList = true; this.Loaded += new RoutedEventHandler(NewListChildWindow_Loaded); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) { return(null); } DefaultScope.List srcList = value as DefaultScope.List; if (srcList != null) { return(Model.ContextModel.Instance.GetList(srcList)); } DefaultScope.Item srcItem = value as DefaultScope.Item; if (srcItem != null) { return(Model.ContextModel.Instance.GetItem(srcItem)); } return(null); }