public void updatePosition(String[] posList)
 {
     for (int i = 0; i < posList.Length; i++)
     {
         int id = Convert.ToInt32(posList[i]);
         ShowClasses sc = new ShowClasses(id);
         sc.Position = i;
         sc.Update();
     }
 }
 public void updateClassesInRing(String data)
 {
     String[] d1 = data.Split(':');
     int ringID = Convert.ToInt32(d1[0]);
     String[] d2 = d1[1].Split(',');
     if (d2.Length > 1)
     {
         // if bigger than one, then we have classes to move otherwise
         // this means that there are no classes in this ring
         for (int i = 0; i < d2.Length; i += 2)
         {
             int pos = Convert.ToInt32(d2[i]);
             int id = Convert.ToInt32(d2[i + 1]);
             ShowClasses sc = new ShowClasses(id);
             sc.Position = pos;
             sc.RingID = ringID;
             sc.Update();
         }
     }
 }
 public void BulkCopy(int showDetailsID, int newShowDetailsID)
 {
     _showClasses.BulkCopy(showDetailsID, newShowDetailsID);
     int clsNo = _showClasses.getMaxClassNo(newShowDetailsID) + 1;
     DataSet ds = _showClasses.GetClassesFromShowDetails(newShowDetailsID);
     foreach (DataRow row in ds.Tables[0].Rows)
     {
         ShowClasses sc = new ShowClasses(row);
         sc.ClassNo = clsNo++;
         sc.Update();
     }
 }
        public void ResetNumbersForDay(int ShowID, int ShowDetailsID)
        {
            DataSet ds = _showClasses.getAllClassesForShow(ShowID);
            if (ds.Tables.Count > 0)
            {
                int rowCnt = 1;
                foreach (DataRow row in ds.Tables[0].Rows)
                {
                    ShowClasses sc = new ShowClasses(row);
                    sc.ClassNo = rowCnt;
                    sc.Update();

                    rowCnt++;

                }
            }
        }
 public void updateClassesInRing(String data)
 {
     String[] d1 = data.Split(':');
     int ringID = Convert.ToInt32(d1[0]);
     String[] d2 = d1[1].Split(',');
     for (int i = 0; i < d2.Length; i += 2)
     {
         int pos = Convert.ToInt32(d2[i]);
         int id = Convert.ToInt32(d2[i + 1]);
         ShowClasses sc = new ShowClasses(id);
         sc.Position = pos;
         sc.RingID = ringID;
         sc.Update();
     }
 }