예제 #1
0
        public EditDisciplineDataPage(AdminWindow adminWindow, disciplines CurrentDiscipline)
        {
            InitializeComponent();


            this.CurrentDiscipline  = (disciplines)CurrentDiscipline.Clone();
            EditDisciplineReference = CurrentDiscipline;

            Departments = Connection.Database.departments.ToList();

            this.adminWindow = adminWindow;

            DataContext = this;
        }
예제 #2
0
        public EditDisciplineDataPage(AdminWindow adminWindow)
        {
            InitializeComponent();

            Departments = Connection.Database.departments.ToList();

            CurrentDiscipline = new disciplines
            {
                discipline_name = "Какая-то дисциплина..."
            };

            this.adminWindow = adminWindow;

            DataContext = this;
        }