示例#1
0
 public GroupAdd()
 {
     InitializeComponent();
     db = new SheaduleContext();
     FacultyName.DropDownStyle = ComboBoxStyle.DropDownList;
     FacultyName.SelectedIndex = 0;
 }
示例#2
0
 public Auditor()
 {
     InitializeComponent();
     db = new SheaduleContext();
     AuditorBuilding.DropDownStyle = ComboBoxStyle.DropDownList;
     AuditorBuilding.SelectedIndex = 0;
 }
示例#3
0
        public TascAddAud(string build, string aud, string weekday, int weeknumber, string time)
        {
            InitializeComponent();

            this.build      = build;
            this.aud        = aud;
            this.weekday    = weekday;
            this.weeknumber = weeknumber;
            this.time       = time;
            db = new SheaduleContext();
            Activity.DropDownStyle                =
                Course.DropDownStyle              =
                    Discipline.DropDownStyle      =
                        Group.DropDownStyle       =
                            Teacher.DropDownStyle = ComboBoxStyle.DropDownList;
            Course.Text           = "3";
            AddList.SelectedIndex = 0;
            TascAdd_Load(null, null);
        }
示例#4
0
 public TascAddTeacher(string teacher, string time, string weekday, int weeknumber)
 {
     InitializeComponent();
     db = new SheaduleContext();
     Activity.DropDownStyle                       =
         Schedule.DropDownStyle                   =
             Building.DropDownStyle               =
                 Course.DropDownStyle             =
                     Auditor.DropDownStyle        =
                         Discipline.DropDownStyle =
                             Group.DropDownStyle  = ComboBoxStyle.DropDownList;
     this.teacher          = teacher;
     this.time             = time;
     this.weekday          = weekday;
     this.weeknumber       = weeknumber;
     AddList.SelectedIndex = 0;
     TascAdd_Load(null, null);
     AuditorAdd(null, null);
 }
 public TascAddStudent(string day, string time, int group, int course, int weeknumber, int crosses)
 {
     this.crosses    = crosses;
     this.day        = day;
     this.time       = time;
     this.group      = group;
     this.course     = course;
     this.weeknumber = weeknumber;
     InitializeComponent();
     db = new SheaduleContext();
     Activity.DropDownStyle                =
         Building.DropDownStyle            =
             Auditor.DropDownStyle         =
                 Discipline.DropDownStyle  =
                     Teacher.DropDownStyle = Schedule.DropDownStyle = ComboBoxStyle.DropDownList;
     Building.Text         = "Б";
     AddList.SelectedIndex = 0;
     TascAdd_Load(null, null);
     AuditorAdd(null, null);
 }
示例#6
0
 public TascAdd()
 {
     InitializeComponent();
     db = new SheaduleContext();
     Activity.DropDownStyle                                       =
         Building.DropDownStyle                                   =
             Course.DropDownStyle                                 =
                 Auditor.DropDownStyle                            =
                     Discipline.DropDownStyle                     =
                         Group.DropDownStyle                      =
                             Teacher.DropDownStyle                =
                                 Time.DropDownStyle               =
                                     WeekDay.DropDownStyle        =
                                         WeekNumber.DropDownStyle = ComboBoxStyle.DropDownList;
     Building.Text         = "Б";
     Course.Text           = "3";
     WeekNumber.Text       = "1";
     AddList.SelectedIndex = 0;
     TascAdd_Load(null, null);
     AuditorAdd(null, null);
 }
示例#7
0
 public ScheduleAdd()
 {
     InitializeComponent();
     db = new SheaduleContext();
 }
示例#8
0
 public DisciplineAdd()
 {
     InitializeComponent();
     db = new SheaduleContext();
 }
示例#9
0
 public TeacherAdd()
 {
     InitializeComponent();
     db = new SheaduleContext();
 }