Example #1
0
 private void SetElementValues()
 {
     Log.Debug("SetElementValues");
     SettingsManager settingsManager = new SettingsManager();
     Settings settings = settingsManager.DeserializeFromXml();
     foreach (Page page in settings.Page)
     {
         if (page.Id == "DefaultPage")
         {
             List<Setting> setting = page.Setting;
             linkButtonShops.Text = settingsManager.GetSettingValue("linkButtonShops", setting);
             linkButtonItems.Text = settingsManager.GetSettingValue("linkButtonItems", setting);
             hyperLinkDefaultManageItems.Text = settingsManager.GetSettingValue("hyperLinkDefaultManageItems", setting);
             hyperLinkDefaultManageShops.Text = settingsManager.GetSettingValue("hyperLinkDefaultManageShops", setting);
             hyperLinkDefaultManageShopItems.Text = settingsManager.GetSettingValue("hyperLinkDefaultManageShopItems", setting);
             gridViewDefaultBodyItems.Columns[0].HeaderText = settingsManager.GetSettingValue("tableDefaultBodyItemsId", setting);
             gridViewDefaultBodyItems.Columns[1].HeaderText = settingsManager.GetSettingValue("tableDefaultBodyItemsName", setting);
             gridViewDefaultBodyItems.Columns[2].HeaderText = settingsManager.GetSettingValue("tableDefaultBodyItemsType", setting);
             gridViewDefaultBodyItems.Columns[3].HeaderText = settingsManager.GetSettingValue("tableDefaultBodyItemsNotes", setting);
             gridViewDefaultBodyShops.Columns[0].HeaderText = settingsManager.GetSettingValue("tableDefaultBodyShopsName", setting);
             gridViewDefaultBodyShops.Columns[1].HeaderText = settingsManager.GetSettingValue("tableDefaultBodyShopsAddress", setting);
             gridViewDefaultBodyShops.Columns[2].HeaderText = settingsManager.GetSettingValue("tableDefaultBodyShopsOwner", setting);
             gridViewDefaultBodyShops.Columns[3].HeaderText = settingsManager.GetSettingValue("tableDefaultBodyShopsPostalCode", setting);
             gridViewDefaultBodyShops.Columns[4].HeaderText = settingsManager.GetSettingValue("tableDefaultBodyShopsCity", setting);
             gridViewDefaultBodyShops.Columns[5].HeaderText = settingsManager.GetSettingValue("tableDefaultBodyShopsIsCompany", setting);
         }
     }
 }
 private void SetElementValues()
 {
     Log.Debug("SetElementValues");
     SettingsManager settingsManager = new SettingsManager();
     Settings settings = settingsManager.DeserializeFromXml();
     foreach (Page page in settings.Page)
     {
         if (page.Id == "ManageUsers")
         {
             List<Setting> setting = page.Setting;
             hyperManageUsersHeadMain.Text = settingsManager.GetSettingValue("hyperManageUsersHeadMain", setting);
             labelManageUsersBodyInputUserName.Text = settingsManager.GetSettingValue("labelManageUsersBodyInputUserName", setting);
             labelManageUsersBodyInputPassword.Text = settingsManager.GetSettingValue("labelManageUsersBodyInputPassword", setting);
             labelManageUsersBodyInputLevel.Text = settingsManager.GetSettingValue("labelManageUsersBodyInputLevel", setting);
             linkButtonManageUsersBodyInputAddUser.Text = settingsManager.GetSettingValue("linkButtonManageUsersBodyInputAddUser", setting);
             statusWrongUsername = settingsManager.GetSettingValue("statusWrongUsername", setting);
             statusWrongPassword = settingsManager.GetSettingValue("statusWrongPassword", setting);
             statusFailedToAddUser = settingsManager.GetSettingValue("statusFailedToAddUser", setting);
         }
     }
 }
 private void SetElementValues()
 {
     Log.Debug("SetElementValues");
     SettingsManager settingsManager = new SettingsManager();
     Settings settings = settingsManager.DeserializeFromXml();
     foreach (Page page in settings.Page)
     {
         if (page.Id == "ManageShops")
         {
             List<Setting> setting = page.Setting;
             hyperLinkMangeShopsHeadMain.Text = settingsManager.GetSettingValue("hyperLinkMangeShopsHeadMain", setting);
             labelManageShopsInputBodyName.Text = settingsManager.GetSettingValue("labelManageShopsInputBodyName", setting);
             labelManageShopsInputBodyAddress.Text = settingsManager.GetSettingValue("labelManageShopsInputBodyAddress", setting);
             labelManageShopsInputBodyOwner.Text = settingsManager.GetSettingValue("labelManageShopsInputBodyOwner", setting);
             labelManageShopsInputBodyPostalCode.Text = settingsManager.GetSettingValue("labelManageShopsInputBodyPostalCode", setting);
             labelManageShopsInputBodyCity.Text = settingsManager.GetSettingValue("labelManageShopsInputBodyCity", setting);
             labelManageShopsInputBodyIsCompany.Text = settingsManager.GetSettingValue("labelManageShopsInputBodyIsCompany", setting);
             labelManageShopsListBody.Text = settingsManager.GetSettingValue("labelManageShopsListBody", setting);
             linkButtonManageShopsListBodySelect.Text = settingsManager.GetSettingValue("linkButtonManageShopsListBodySelect", setting);
             linkButtonManageShopsInputBodySubmit.Text = settingsManager.GetSettingValue("linkButtonManageShopsInputBodySubmit",
                                                                              setting);
             linkButtonManageShopsInputBodyDelete.Text = settingsManager.GetSettingValue("linkButtonManageShopsInputBodyDelete",
                                                                              setting);
             linkButtonManageShopsInputBodyUpdate.Text = settingsManager.GetSettingValue("linkButtonManageShopsInputBodyUpdate",
                                                                              setting);
             linkButtonManageShopsListBodyAdd.Text = settingsManager.GetSettingValue("linkButtonManageShopsListBodyAdd", setting);
         }
     }
 }
 private void SetElementValues()
 {
     Log.Debug("SetElementValues");
     SettingsManager settingsManager = new SettingsManager();
     Settings settings = settingsManager.DeserializeFromXml();
     foreach (Page page in settings.Page)
     {
         if (page.Id == "ManageShopItems")
         {
             List<Setting> setting = page.Setting;
             hyperLinkManageShopItemsMain.Text = settingsManager.GetSettingValue("hyperLinkManageShopItemsMain",
                                                                                 setting);
             labelManageShopItemsBodyInputItems.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyInputItems", setting);
             labelManageShopItemsBodyInputShops.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyInputShops", setting);
             labelManageShopItemsBodyInputPriceGross.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyInputPriceGross", setting);
             labelManageShopItemsBodyInputPriceNet.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyInputPriceNet", setting);
             labelManageShopItemsBodyInputNumberOfItems.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyInputNumberOfItems", setting);
             labelManageShopItemsBodyTrackersInputShopItem.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyTrackersInputShopItem", setting);
             labelManageShopItemsBodyTrackersInputDateTime.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyTrackersInputDateTime", setting);
             labelManageShopItemsBodyTrackersInputSoldCount.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyTrackersInputSoldCount", setting);
             labelManageShopItemsBodyTrackersStatsTotal.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyTrackersStatsTotal", setting);
             labelManageShopItemsBodyTrackersStatsSold.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyTrackersStatsSold", setting);
             labelManageShopItemsBodyTrackersStatsGrossReceived.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyTrackersStatsGrossReceived", setting);
             labelManageShopItemsBodyTrackersStatsNetReceived.Text =
                 settingsManager.GetSettingValue("labelManageShopItemsBodyTrackersStatsNetReceived", setting);
             linkButtonManageShopItemsBodyInputAdd.Text =
                 settingsManager.GetSettingValue("linkButtonManageShopItemsBodyInputAdd", setting);
             linkButtonManageShopItemsBodyTrackersInputAdd.Text =
                 settingsManager.GetSettingValue("linkButtonManageShopItemsBodyTrackersInputAdd", setting);
             gridViewManageShopItemsBodyList.Columns[0].HeaderText =
                 settingsManager.GetSettingValue("tableManageShopItemsBodyListDateTimeText", setting);
             gridViewManageShopItemsBodyList.Columns[1].HeaderText =
                 settingsManager.GetSettingValue("tableManageShopItemsBodyListNumberOfItemsText", setting);
             gridViewManageShopItemsBodyList.Columns[2].HeaderText =
                 settingsManager.GetSettingValue("tableManageShopItemsBodyListPriceGrossText", setting);
             gridViewManageShopItemsBodyList.Columns[3].HeaderText =
                 settingsManager.GetSettingValue("tableManageShopItemsBodyListPriceNetText", setting);
             gridViewManageShopItemsBodyList.Columns[4].HeaderText =
                 settingsManager.GetSettingValue("tableManageShopItemsBodyListItemText", setting);
             gridViewManageShopItemsBodyList.Columns[5].HeaderText =
                 settingsManager.GetSettingValue("tableManageShopItemsBodyListShopText", setting);
             gridViewManageShopItemsBodyTrackersList.Columns[0].HeaderText =
                 settingsManager.GetSettingValue("ManageShopItemsBodyTrackersListDateTime", setting);
             gridViewManageShopItemsBodyTrackersList.Columns[1].HeaderText =
                 settingsManager.GetSettingValue("ManageShopItemsBodyTrackersListCount", setting);
             CommandField commandFieldDelete = new CommandField
                 {
                     ShowDeleteButton = true,
                     DeleteText = settingsManager.GetSettingValue("tableManageShopItemsBodyListDeleteText", setting)
                 };
             CommandField commandFieldSelect = new CommandField
             {
                 ShowDeleteButton = false,
                 ShowSelectButton = true,
                 SelectText = settingsManager.GetSettingValue("tableManageShopItemsBodyListSelectText", setting)
             };
             if (gridViewManageShopItemsBodyList.Columns.Count < 7)
             {
                 gridViewManageShopItemsBodyList.Columns.Add(commandFieldDelete);
                 gridViewManageShopItemsBodyList.Columns.Add(commandFieldSelect);
             }
         }
     }
 }
 private void SetElementValues()
 {
     Log.Debug("SetElementValues");
     SettingsManager settingsManager = new SettingsManager();
     Settings settings = settingsManager.DeserializeFromXml();
     foreach (Page page in settings.Page)
     {
         if (page.Id == "ManageItems")
         {
             List<Setting> setting = page.Setting;
             hyperLinkManageItemsHeadMain.Text = settingsManager.GetSettingValue("hyperLinkManageItemsHeadMain",
                                                                                 setting);
             labelManageItemsBodyItemTypes.Text = settingsManager.GetSettingValue(
                 "labelManageItemsBodyItemTypes", setting);
             linkButtonManageItemsBodyItemTypesSubmit.Text =
                 settingsManager.GetSettingValue("linkButtonManageItemsBodyItemTypesSubmit",
                                                 setting);
             labelManageItemsBodyItemsSelect.Text =
                 settingsManager.GetSettingValue("labelManageItemsBodyItemsSelect", setting);
             linkButtonManageItemsBodyItemsSelect.Text =
                 settingsManager.GetSettingValue("linkButtonManageItemsBodyItemsSelect", setting);
             linkButtonManageItemsBodyItemsAddNew.Text =
                 settingsManager.GetSettingValue("linkButtonManageItemsBodyItemsAddNew", setting);
             labelManageItemsBodyItemsSubmitItemName.Text =
                 settingsManager.GetSettingValue("labelManageItemsBodyItemsSubmitItemName", setting);
             labelManageItemsBodyItemsSubmitItemNote.Text =
                 settingsManager.GetSettingValue("labelManageItemsBodyItemsSubmitItemNote", setting);
             labelManageItemsBodyItemsSubmitItemType.Text =
                 settingsManager.GetSettingValue("labelManageItemsBodyItemsSubmitItemType", setting);
             linkButtonManageItemsBodyItemsSubmit.Text =
                 settingsManager.GetSettingValue("linkButtonManageItemsBodyItemsSubmit",
                                                 setting);
             linkButtonManageItemsBodyItemsUpdate.Text =
                 settingsManager.GetSettingValue("linkButtonManageItemsBodyItemsUpdate",
                                                 setting);
             linkButtonManageItemsBodyItemsDelete.Text =
                 settingsManager.GetSettingValue("linkButtonManageItemsBodyItemsDelete", setting);
         }
     }
     EnableNew();
 }