public RosreestrContext() { Xml = new XmlUseMethod(); var visualTreatment = new VisualTreatmentFace(); StartButton = new StatusButtonMethod(); StartButton.Button.Command = new DelegateCommand(() => { visualTreatment.VisualFace(StartButton, ConfigFile.VisualId, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); }); Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.VisualId); }); }
public DataContextActual() { var commandauto = new StatusReg(); StartButton = new StatusButtonMethod(); Xml = new XmlUseMethod(); StartButton.Button.Command = new DelegateCommand((() => { commandauto.StateReg(StartButton, ConfigFile.FidFace, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); })); Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.FidFace); }); }
public DataContextVisualBank() { StartButton = new StatusButtonMethod(); var visual = new VisualBankMessages(); Xml = new XmlUseMethod(); Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.VisualId); }); StartButton.Button.Command = new DelegateCommand(() => { visual.StartVisualBank(StartButton, ConfigFile.VisualId, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); }); }
public DataContextSnuAuto() { var commandauto = new AutoCklicsAisCommand(); StartButton = new StatusButtonMethod(); Xml = new XmlUseMethod(); StartButton.Button.Command = new DelegateCommand(() => { commandauto.AutoClicerSnuOneForm(StartButton, ConfigFile.FileInn, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); }); Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.FileInn); }); }
public MassSnuDataContext() { var commandauto = new AutoCklicsAisCommand(); StartButton = new StatusButtonMethod(); Xml2 = new XmlUseMethod(); StartButton.Button.Command = new DelegateCommand((() => { commandauto.AutoClicerSnuMassInnForm(StartButton, ConfigFile.FileInnFull, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); })); Update = new DelegateCommand(() => { Xml2.UpdateFileXml(ConfigFile.FileInnFull); }); }
public DataContextStartCash() { Xml = new XmlUseMethod(); var bpAuto = new AutoMessageLk(); StartButton = new StatusButtonMethod(); StartButton.Button.Command = new DelegateCommand(() => { bpAuto.StartProcess(StartButton, ConfigFile.AllListModel); }); Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.AllListModel); }); }
public PravoEditDataContext() { var commandauto = new CommandPravo(); StartButton = new StatusButtonMethod(); Xml = new XmlUseMethod(); StartButton.Button.Command = new DelegateCommand((() => { commandauto.AutoClicerEditPravo(StartButton, ConfigFile.FileFid, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); })); Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.FileFid); }); }
public DataContextZemly() { Branch = new SelectBranch().AddBranhc(); QbeStatus = new QbeClassMethod(); var commandauto = new LibaryCommandPublic.TestAutoit.Reg.TreatmentFPD.Zemly.Zemly(); StartButton2 = new StatusButtonMethod(); Xml1 = new XmlUseMethod(); StartButton2.Button.Command = new DelegateCommand(() => { commandauto.ZemlyAuto(QbeStatus, Branch, StartButton2, ConfigFile.FileFpd, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); }); Update = new DelegateCommand(() => { Xml1.UpdateFileXml(ConfigFile.FileFpd); }); SelectAddC = new DelegateCommand <object>(param => { QbeStatus.SelectStatusAddC(param); }); RemoveAddC = new DelegateCommand <object>(param => { QbeStatus.DeleteStatusAddC(param); }); SelectAddF = new DelegateCommand <object>(param => { QbeStatus.SelectStatusAddF(param); }); RemoveAddF = new DelegateCommand <object>(param => { QbeStatus.DeleteStatusAddF(param); }); }
public UserPrintSnuDataContext() { PdfModel = new PdfListFile(); var commandauto = new AutoCklicsAisCommand(); StartButton = new StatusButtonMethod(); Date = new DatePickerPub(); Xml = new XmlUseMethod(); StartButton.Button.Command = new DelegateCommand((() => { commandauto.PrintSnu(Date, StartButton, ConfigFile.FileInnFull, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk, ConfigFile.Connection); })); Validate = new DelegateCommand(() => { PdfModel.CountPdfTemp(ConfigFile.PathTemp); }); Validate2 = new DelegateCommand(() => { PdfModel.CountPdfWork(ConfigFile.PathPdfWork); }); Moving = new DelegateCommand((() => { PdfModel.MoveWork(ConfigFile.PathPdfWork); })); DeleteTemp = new DelegateCommand((() => { PdfModel.DeleteTemp(); })); Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.FileInnFull); }); PrintPdf = new DelegateCommand(() => { PdfModel.PrintAllFile(ConfigFile.PathPdfWork); }); }
public DataContextReport() { try { var command = new CommandSnuOneAuto(); Report = new ReportXlsxMethod(ConfigFile.ExcelReportFile); ReportJurnalAndFile = new ReportJurnalMethod(ConfigFile.PathJurnal, ConfigFile.PathInn); Xml = new XmlUseMethod(); DeleteJurnal = new DelegateCommand(() => { ReportJurnalAndFile.DeleteXmlReportJurnal(); }); DeleteReport = new DelegateCommand(() => { Report.DeleteReportFile(); }); OpenReport = new DelegateCommand(() => { Report.OpenReport(); }); OpenFile = new DelegateCommand(() => { command.ConvertXslToXmlAndOpen(Report, ReportJurnalAndFile, ConfigFile.ExcelReportFile); }); Update = new DelegateCommand(() => { ReportJurnalAndFile.AddFileXml(ConfigFile.PathInn); ReportJurnalAndFile.AddJurnal(ConfigFile.PathJurnal); }); } catch (Exception e) { Console.WriteLine(e); throw; } }
/// <summary> /// Команда Update вынесена в отдельный класс чтобы не загромождать логику MVVM /// </summary> /// <param name="xmlUseMethod">XmlUseMethod Метод файла xml</param> /// <param name="reportJournalMethod">ReportJournalMethod метод журнала файла xml</param> /// <param name="pathFileInn">Путь к файлу FullName</param> /// <param name="pathJournal">Просто путь к журналу</param> /// <param name="pathInn">Просто путь к ИНН</param> public void UpdateModel(XmlUseMethod xmlUseMethod, ReportJournalMethod reportJournalMethod, string pathFileInn, string pathJournal, string pathInn) { xmlUseMethod.UpdateFileXml(pathFileInn); reportJournalMethod.AddFileXml(pathInn); reportJournalMethod.AddJournal(pathJournal); }
/// <summary> /// Команда Update вынесена в отдельный клас чтобы не загромождать логику MVVM /// </summary> /// <param name="xmlusemethod">XmlUseMethod Метод файла xml</param> /// <param name="reportjurnalmethod">ReportJurnalMethod метод журнала файла xml</param> /// <param name="pathfileinn">Путь к файлу FullName</param> /// <param name="pathjurnal">Просто путь к журналу</param> /// <param name="pathinn">Просто путь к ИНН</param> public void UpdateModel(XmlUseMethod xmlusemethod, ReportJurnalMethod reportjurnalmethod, string pathfileinn, string pathjurnal, string pathinn) { xmlusemethod.UpdateFileXml(pathfileinn); reportjurnalmethod.AddFileXml(pathinn); reportjurnalmethod.AddJurnal(pathjurnal); }