Esempio n. 1
0
        private void Window_Loaded(object sender, EventArgs e)
        {
            try
            {
                // Зависимости
                IConfiguration configuration = Conficurated();
                WorkWindow     workWindow    = new WorkWindow();
                WPF            adapter       = new WPF(workWindow);
                DataContainer  dataContainer = new DataContainer();
                ReaderFactory  factory       = new ReaderFactory(configuration.GetSection("Readers"));
                Core           core          = new Core(adapter, dataContainer, factory);
                workWindow.BindCallBack(core);

                Hide();
                workWindow.Show();
            }
            catch (Exception ex)
            {
                Logger.Log(ex, "");
            }
            Close();
        }
Esempio n. 2
0
 public WPF(WorkWindow window)
 {
     _window      = window;
     _openCommand = new OpenCommand();
 }