Esempio n. 1
0
 public Form1()
 {
     try
     {
         InitializeComponent();
         formsComponents = new InitComponents();
         Initialyzer initialyzer = new Initialyzer(formsComponents, this);
         initialyzer.init();
     }
     catch (Exception ex)
     {
         ExceptionHandler.getInstance().processing(ex);
     }
 }
Esempio n. 2
0
 public Form1()
 {
     try
     {
         //Создание конфига из ini-файла
         InitComponents initComponents = new InitComponents();
         Initialyzer    initialyzer    = new Initialyzer(initComponents);
         initialyzer.init();
         //Конфигурирование модели из конфига
         initComponents.commandsStore.executeCommand(
             new ConfigModelCommand(initComponents.model, initComponents.config));
         //разбираем файлы логов
         initComponents.commandsStore.executeCommand(
             new ParseCommand(initComponents.model));
     }
     catch (Exception ex)
     {
         ExceptionHandler.getInstance().processing(ex);
     }
     finally
     {
         Environment.Exit(0);//в конце завершаю работу приложения
     }
 }