Beispiel #1
0
        //создание новой группы
        private void createNewGroupBtn_Click(object sender, EventArgs e)
        {
            createNewGroup cng = new createNewGroup();

            cng.ShowDialog();
            LoadDataFromTables();
        }
Beispiel #2
0
 //для редактирования необходимой записи
 private void EditApplic(string command)
 {
     if ((bs.Count > 0) && (dgvGroups.SelectedRows.Count > 0))
     {
         int ID_SS = Convert.ToInt32(((DataRowView)this.bs.Current).Row["ID_Group"]);
         if (command == "editGroup")
         {
             createNewGroup cg = new createNewGroup(ID_SS);
             cg.ShowDialog();
         }
         else
         {
             string          thisCountry = Convert.ToString(((DataRowView)this.bs.Current).Row["sCountry"]);
             int             PlacesCount = Convert.ToInt32(((DataRowView)this.bs.Current).Row["sCount"]);
             workWithClients wwc         = new workWithClients(ID_SS, PlacesCount, thisCountry);
             wwc.ShowDialog();
         }
         LoadDataFromTables();
         bs.Position = bs.Find("ID_Group", ID_SS);
     }
 }