Beispiel #1
0
        public override bool ShowUIAndValidate()
        {
            _moduleViewModel = new GeneratorModuleViewModel(Context);

            GeneratorModuleDialog window = new GeneratorModuleDialog(_moduleViewModel);
            bool?isOk = window.ShowModal();

            if (isOk == true)
            {
                Validate();
            }
            return(isOk == true);
        }
Beispiel #2
0
        public override bool ShowUIAndValidate()
        {
            _moduleViewModel = new GeneratorModuleViewModel(Context);

            GeneratorModuleDialog window = new GeneratorModuleDialog(_moduleViewModel);
            bool?isOk = window.ShowModal();

            File.WriteAllText(@"d:/a.txt", _moduleViewModel.ModelTypeCollection.Count().ToString());

            if (isOk == true)
            {
                Validate();
            }
            return(isOk == true);
        }