Exemplo n.º 1
0
        public DataContextGenerator()
        {
            var commandCreateListXml = new CommandAddListFull();

            Schemes       = new SchemesMethodNew();
            ModelXlsx     = new MethodModelXlsx();
            XmlFile       = new ListViewModelXmlFileGenerateMethod(ConfigFile.FileSpisok);
            Transfer      = new DelegateCommand(() => { XmlFile.MoveFile(ConfigFile.PathInn); });
            CreateListXml = new DelegateCommand(delegate { commandCreateListXml.CreateListModel(Schemes, ModelXlsx, XmlFile, ConfigFile.FileSpisok); });
            RemoveXlsx    = new DelegateCommand(() => { ModelXlsx.DeleteXlsx(); });
        }
Exemplo n.º 2
0
        public DataContextSpisok()
        {
            SelectFileControl = new SelectFile();
            SelectListControl = new SelectList();
            ShemeDocument     = new ShemeMethod(TestUserControl);
            XmlFile           = new ListViewModelXmlFileGenerateMethod(ConfigFile.FileSpisok);
            TextBoxFileModel  = new TextBoxModelMethod();
            ModelSnuOne       = new ModelSnuOneFormNameListMethod();
            CheckBoxModel     = new CheckBoxModel();
            CommandFormirovanie command = new CommandFormirovanie();

            Transfer        = new DelegateCommand(() => { XmlFile.MoveFile(ConfigFile.PathInn); });
            SelectFile      = new DelegateCommand(delegate { command.SelectFileSlsx(TextBoxFileModel, ModelSnuOne); });
            FormirovanieXml = new DelegateCommand((delegate
            {
                command.FormirovanieXml(ModelSnuOne, TextBoxFileModel, ShemeDocument, CheckBoxModel, ConfigFile.FileSpisok, XmlFile);
            }));
        }