Exemple #1
0
 private void AddStudent_Load(object sender, EventArgs e)
 {
     grups = new Grups();
     grups.OpenConnection(connectionString);
     comboBox_Grups.Items.AddRange(grups.GetAllGrups());
     grups.CloseConnection();
 }
Exemple #2
0
 public DeleteGrup()
 {
     InitializeComponent();
     connectionString = ConfigurationManager.AppSettings["connectionString"];
     grups            = new Grups();
     grups.OpenConnection(connectionString);
     this.comboBox_Grups.Items.AddRange(grups.GetAllGrups());
     grups.CloseConnection();
 }
Exemple #3
0
        public EnterMarks(int id)
        {
            InitializeComponent();
            this.id          = id;
            connectionString = ConfigurationManager.AppSettings["connectionString"];
            Predmets pr = new Predmets();

            pr.OpenConnection(connectionString);
            comboBox_Predmet.Items.AddRange(pr.GetPredmetsByPrepodId(id));
            pr.CloseConnection();
            Grups g = new Grups();

            g.OpenConnection(connectionString);
            comboBox_Group.Items.AddRange(g.GetAllGrups());
            g.CloseConnection();
        }