예제 #1
0
 public void saveWebTheme()
 {
     WebinarTheme objTheme = new WebinarTheme();
     //objTheme.PriThemeColor = System.Drawing.ColorTranslator.ToHtml(rcolorPri.SelectedColor);
     //objTheme.SecThemeColor = System.Drawing.ColorTranslator.ToHtml(rcolorSec.SelectedColor);
     //objTheme.ThemeFontName = txtFontName.Text;
     objTheme.ThemeLayoutID  = Convert.ToInt32(hSelThemeID.Value);
     objTheme.WebinarID = Convert.ToInt32(hWebinarID.Value);
     objWebinarDA.SaveWebinarTheme(objTheme);
 }
예제 #2
0
 public void SaveWebinarTheme(WebinarTheme objWebinarTheme)
 {
     try
     {
         using (MySqlConnection sqlCon = new MySqlConnection(Constant.EBirdConnectionString))
         {
             MySqlCommand sqlCmd = new MySqlCommand(DBQuery.sqlWebinarThemeUpdate, sqlCon);
             sqlCon.Open();
             sqlCmd.CommandType = CommandType.Text;
             //sqlCmd.Parameters.Add(new MySqlParameter("thPriColor", objWebinarTheme.PriThemeColor));
             //sqlCmd.Parameters.Add(new MySqlParameter("thSecColor", objWebinarTheme.SecThemeColor));
             //sqlCmd.Parameters.Add(new MySqlParameter("thFontName", objWebinarTheme.ThemeFontName));
             sqlCmd.Parameters.Add(new MySqlParameter("@headerType", objWebinarTheme.HeaderType));
             sqlCmd.Parameters.Add(new MySqlParameter("@thLayoutID", objWebinarTheme.ThemeLayoutID));
             sqlCmd.Parameters.Add(new MySqlParameter("@webinarID", objWebinarTheme.WebinarID));
             sqlCmd.ExecuteNonQuery();
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }
예제 #3
0
 public void saveWebTheme()
 {
     WebinarTheme objTheme = new WebinarTheme();
     objTheme.HeaderType = rcmbHeader.SelectedValue;
     objTheme.ThemeLayoutID = Convert.ToInt32(hSelThemeID.Value);
     objTheme.WebinarID = Convert.ToInt32(hWebinarID.Value);
     objWebinarDA.SaveWebinarTheme(objTheme);
     if (hdynImgIDs.Value.Trim() != "")
     {
         objWebinarDA.UpdateRegFormLogoOrder(Convert.ToInt32(hWebinarID.Value), objUtil.StringToArrayList(hdynImgIDs.Value.Trim(), new char[] { ',' }));
     }
 }