Esempio n. 1
0
        //*************

        #endregion

        #region constractor
        /// <summary>
        /// Constractor
        /// </summary>
        public LoginDialog()
        {
            InitializeComponent();

            //Adding event to the static class
            JSONConvertor.ErrorEvent += JSONConvertor_ErrorEvent;

            splash             = new VT_Splash();
            splash.ErrorEvent += JSONConvertor_ErrorEvent;
            splash.CloseApp   += Close;


            CheckConfigFile();
        }
Esempio n. 2
0
        public TrainingMenu(Patient currentPatient, Training currentTraining)
        {
            InitializeComponent();

            _currentPatient  = currentPatient;
            _currentTraining = currentTraining;

            this.Loaded += TrainingMenu_Loaded;

            splash = new VT_Splash();
            //splash.ErrorEvent+=

            worker                     = new BackgroundWorker();
            worker.DoWork             += Worker_DoWork;
            worker.RunWorkerCompleted += Worker_RunWorkerCompleted;
        }