public override DataSet Clone()
        {
            MultiLanguageData data = (MultiLanguageData)base.Clone();

            data.InitVars();
            return(data);
        }
        /// <summary>
        /// Returns all enabled languages
        /// </summary>
        public MultiLanguageData GetSurveyLanguages(int surveyId, string Entity)
        {
            MultiLanguageData dataSet = new MultiLanguageData();

            ArrayList commandParameters = new ArrayList();
            {
                commandParameters.Add(new SqlParameter("@SurveyId", surveyId).SqlValue);
                commandParameters.Add(new SqlParameter("@Entity", Entity).SqlValue);
            }

            DbConnection.db.LoadDataSet("vts_spMutliLanguageGetEnabledForSurvey", dataSet, new string[] { "MultiLanguages" }, commandParameters.ToArray());
            return dataSet;
        }
 /// <summary>
 /// Returns all languages that can be enabled
 /// </summary>
 public MultiLanguageData GetMultiLanguages()
 {
     MultiLanguageData dataSet = new MultiLanguageData();
     DbConnection.db.LoadDataSet("vts_spMultiLanguageGetAll", dataSet, new string[] { "MultiLanguages" });
     return dataSet;
 }
 public MultiLanguagesRowChangeEvent(MultiLanguageData.MultiLanguagesRow row, DataRowAction action)
 {
     this.eventRow = row;
     this.eventAction = action;
 }
 public void RemoveMultiLanguagesRow(MultiLanguageData.MultiLanguagesRow row)
 {
     base.Rows.Remove(row);
 }
 public void AddMultiLanguagesRow(MultiLanguageData.MultiLanguagesRow row)
 {
     base.Rows.Add(row);
 }