public MainWindow()
        {
            try
            {
                Log log = new Log();
                log.LogMessageToFile("Program started!!!");
                InitializeComponent();

                OpenGlDisplay openGLDisplay1 = new OpenGlDisplay(openGLControl1, false, 1f, 0f, 0f);
                OpenGlDisplay openGLDisplay2 = new OpenGlDisplay(openGLControl2, false, 1f, 0f, 0f);
                OpenGlDisplay openGLDisplay3 = new OpenGlDisplay(openGLControl3, false, 1f, 0f, 0f);
                OpenGlDisplay openGLDisplay4 = new OpenGlDisplay(openGLControl4, false, 1f, 0f, 0f);
                OpenGlDisplay openGLDisplay5 = new OpenGlDisplay(openGLControl5, false, 1f, 0f, 0f);
                OpenGlDisplay openGLDisplay6 = new OpenGlDisplay(openGLControl6, false, 1f, 0f, 0f);


                SettingProgram settingProgramDataHandler = SettingService.LoadSettingProgram();
                SettingWindow  settingWindowDataHandler  = SettingService.LoadSettingWindow();
                SettingFBGA    settingFBGADataHandler    = SettingService.LoadSettingFBGA();
                SettingMIC     settingMICDataHandler     = SettingService.LoadSettingMIC();
                SettingECG     settingECGDataHandler     = SettingService.LoadSettingECG();
                SettingACC     settingACCDataHandler     = SettingService.LoadSettingACC();
                SettingPPG     settingPPGDataHandler     = SettingService.LoadSettingPPG();

                TreeViewViewModel treeViewHandler = new TreeViewViewModel();
                Tree.DataContext = treeViewHandler;

                OpenGLDispatcher openGLDispatcherHandler =
                    new OpenGLDispatcher(openGLDisplay1, openGLDisplay2, openGLDisplay3, openGLDisplay4, openGLDisplay5, openGLDisplay6,
                                         settingMICDataHandler.NumberOfChannels, settingFBGADataHandler.NumberOfChannels, settingECGDataHandler.NumberOfChannels, settingACCDataHandler.NumberOfChannels, settingPPGDataHandler.NumberOfChannels);

                MainWindowViewModel mainWindowHandler = new MainWindowViewModel(treeViewHandler, openGLDispatcherHandler, settingProgramDataHandler, settingWindowDataHandler, settingFBGADataHandler, settingMICDataHandler, settingECGDataHandler, settingACCDataHandler, settingPPGDataHandler);
                treeViewHandler.addParent(mainWindowHandler);
                DataContext = mainWindowHandler;

                device = new Device(mainWindowHandler);
            }
            catch (Exception ex)
            {
                Log log = new Log();
                log.LogMessageToFile(ex.Message);
                Dialogs.DialogMessage.DialogMessageViewModel dvm    = new Dialogs.DialogMessage.DialogMessageViewModel(Dialogs.DialogMessage.DialogImageTypeEnum.Error, ex.Message);
                Dialogs.DialogService.DialogResult           result = Dialogs.DialogService.DialogService.OpenDialog(dvm);
            }
        }
예제 #2
0
 public void sendSetting(SettingACC accSetting, SettingPPG ppgSetting)
 {
     base.sendMessage(new SendSettingACC_PPGMessage(accSetting, ppgSetting));
 }
예제 #3
0
 private static string parse(SettingACC accSetting, SettingPPG ppgSetting)
 {
     return("ACA");
 }
예제 #4
0
 public SendSettingACC_PPGMessage(SettingACC accSetting, SettingPPG ppgSetting) : base(parse(accSetting, ppgSetting))
 {
 }