示例#1
0
        /// <summary>
        /// Наш MVVM Патерн
        /// </summary>
        /// <param name="detal"></param>
        public DataDatalization(Detalizacia detal)
        {
            var logic        = new Logica.Logica();
            var contextlogic = new SobytieAndCommandContext.ContextCommand();
            var sobytie      = new SobytieAndCommandContext.SobytieReport();
            var sobytiedbf   = new SobytieAndCommandContext.SobytieDbfFile();

            Service             = new WpfBakcupStart.ContentBakcup.Service.VoidService();
            Dialog              = new VoidDialog(Service);
            Years               = new AddColection.AddColection().Years();
            PanelUl             = new SelectPanelUl();
            PanelFl             = new SelectPanelFl();
            Trigers             = new TrigersUse();
            Tab                 = new TabControl();
            IsSelectedFace      = new DelegateCommand(() => Trigers.IsSelectFace());
            ListFilesDbf        = new ListFilesDbf();
            ListReport          = new AddColection.AddColection().Report();
            Seath               = new DelegateCommand(() => Dispatcher.CurrentDispatcher.Invoke(() => logic.Go(detal, Trigers, PanelUl, PanelFl, Years, ListFilesDbf, Tab, ListReport)));
            RemoveReport        = new DelegateCommand(() => contextlogic.RemoveReport(ListReport.Report, ListReport.ShemesFilesReport));
            OpenReport          = new DelegateCommand(() => contextlogic.OpenReport(ListReport.Report));
            FileDropDrapReport  = new DelegateCommand <object>(parameter => sobytie.MoveCopy(parameter, ListReport.Report));
            FileOpenEvent       = new DelegateCommand(() => sobytie.OpenReportEvent(ListReport.Report));
            FileOpenDbf         = new DelegateCommand((() => sobytiedbf.OpenDbfEvent(ListFilesDbf.FileDbf)));
            FileDropDrapDbf     = new DelegateCommand <object>(parameter => sobytiedbf.MoveCopyDbf(parameter, ListFilesDbf.FileDbf));
            OpenDialogWcfBackup = new DelegateCommand <object>((parameter =>
            {
                Service.SelectDialog(Convert.ToString(parameter), Dialog);
            }));
        }