Beispiel #1
0
        public Phones(UchOtdRepository uoRepo)
        {
            InitializeComponent();

            _uoRepo = uoRepo;

            _uiScheduler = TaskScheduler.FromCurrentSynchronizationContext();
        }
Beispiel #2
0
        private void InitRepositories()
        {
            CurrentServerName = serverList[0];

            //Repo = new ScheduleRepository("data source=tcp:" + CurrentServerName + ",1433;Database=" + DefaultDbName + "; Integrated Security=SSPI;multipleactiveresultsets=True");
            //UOrepo = new UchOtdRepository("data source=tcp:" + CurrentServerName + ",1433;Database=UchOtd; Integrated Security=SSPI;multipleactiveresultsets=True");

            Repo = new ScheduleRepository("Server=" + CurrentServerName + ",1433;Database=" + DefaultDbName + "; User ID=sa;Password=ghjuhfvvf; multipleactiveresultsets=True");
            UOrepo = new UchOtdRepository("Server=" + CurrentServerName + ",1433;Database=UchOtd; User ID=sa;Password=ghjuhfvvf; multipleactiveresultsets=True");

            if (School)
            {
                uploadTimer.Enabled = true;
            }
        }