/// <summary>
        /// 
        /// </summary>
        public EditKeysOptionalInfoViewModel(IKeyProxy keyProxy)
        {
            this.keyProxy = keyProxy;

            SCVM = new SearchControlViewModel();
            SCVM.KeyTypesVisibility = Visibility.Collapsed;
            SCVM.SearchKeys += new EventHandler(SearchKeys);
            SearchKeys(null, null);
        }
Esempio n. 2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="keyProxy"></param>
        public TemplateViewModelBase(IKeyProxy keyProxy)
        {
            this.keyProxy = keyProxy;
            if (keys == null)
                keys = new ObservableCollection<KeyInfoModel>();

            if (StepPages == null)
                StepPages = new ObservableCollection<Page>();

            SearchControlVM = new SearchControlViewModel();
            SearchControlVM.SearchKeys += new EventHandler((s, e) =>
            {
                if (keys != null && keys.Count > 0)
                    keys.Clear();
                isSearchFirstPage = true;
                SearchAllKeys();
            });
        }