Пример #1
0
        private void BindSearchTargets()
        {
            var settings    = new SearchAndReplaceSettings(ModuleId);
            var searchItems = settings.SearchTargts;

            cboSearchTarget.DataTextField  = "Description";
            cboSearchTarget.DataValueField = "Id";
            cboSearchTarget.DataSource     = searchItems;
            cboSearchTarget.DataBind();
        }
Пример #2
0
 public override void UpdateSettings()
 {
     try
     {
         var searchItems = new List <SearchItem>();
         foreach (RadListBoxItem item in lstSelectedSearchTargets.Items)
         {
             var tableName  = SearchItem.GetTableNameFromId(item.Value);
             var columnName = SearchItem.GetColumnNameFromId(item.Value);
             var searchItem = new SearchItem(tableName, columnName);
             searchItems.Add(searchItem);
         }
         var settings = new SearchAndReplaceSettings(ModuleId);
         settings.SearchTargts = searchItems;
     }
     catch (Exception exc) //Module failed to load
     {
         Exceptions.ProcessModuleLoadException(this, exc);
     }
 }
Пример #3
0
        public override void LoadSettings()
        {
            try
            {
                if (Page.IsPostBack)
                {
                    return;
                }

                var settings    = new SearchAndReplaceSettings(ModuleId);
                var searchItems = settings.SearchTargts;

                // Load UI
                foreach (var item in searchItems)
                {
                    lstSelectedSearchTargets.Items.Add(new RadListBoxItem(item.Description, item.Id));
                }
            }
            catch (Exception exc) //Module failed to load
            {
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }