Ejemplo n.º 1
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;
        }
Ejemplo n.º 2
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();
        }