public Dictionary<string, object> Fill (WebInterface webInterface, string filename, OSHttpRequest httpRequest, OSHttpResponse httpResponse, Dictionary<string, object> requestParameters, ITranslator translator, out string response) { response = null; var vars = new Dictionary<string, object> (); var settings = webInterface.GetGridSettings (); if (requestParameters.ContainsKey ("Submit")) { settings.Gridname = requestParameters ["Gridname"].ToString (); settings.Gridnick = requestParameters ["Gridnick"].ToString (); settings.WelcomeMessage = requestParameters ["WelcomeMessage"].ToString (); settings.GovernorName = requestParameters ["GovernorName"].ToString (); settings.RealEstateOwnerName = requestParameters ["RealEstateOwnerName"].ToString (); settings.BankerName = requestParameters ["BankerName"].ToString (); settings.MarketplaceOwnerName = requestParameters ["MarketplaceOwnerName"].ToString (); settings.MainlandEstateName = requestParameters ["MainlandEstateName"].ToString (); settings.SystemEstateName = requestParameters ["SystemEstateName"].ToString (); // update main grid setup webInterface.SaveGridSettings (settings); response = "Successfully updated grid settings."; return null; } vars.Add ("Gridname", settings.Gridname); vars.Add ("Gridnick", settings.Gridnick); vars.Add ("WelcomeMessage", settings.WelcomeMessage); vars.Add ("GovernorName", settings.GovernorName); vars.Add ("RealEstateOwnerName", settings.RealEstateOwnerName); vars.Add ("BankerName", settings.BankerName); vars.Add ("MarketplaceOwnerName", settings.MarketplaceOwnerName); vars.Add ("MainlandEstateName", settings.MainlandEstateName); vars.Add ("SystemEstateName", settings.SystemEstateName); vars.Add ("GridSettingsManager", translator.GetTranslatedString ("GridSettingsManager")); vars.Add ("GridnameText", translator.GetTranslatedString ("GridnameText")); vars.Add ("GridnickText", translator.GetTranslatedString ("GridnickText")); vars.Add ("WelcomeMessageText", translator.GetTranslatedString ("WelcomeMessageText")); vars.Add ("GovernorNameText", translator.GetTranslatedString ("GovernorNameText")); vars.Add ("RealEstateOwnerNameText", translator.GetTranslatedString ("RealEstateOwnerNameText")); vars.Add ("BankerNameText", translator.GetTranslatedString ("BankerNameText")); vars.Add ("MarketPlaceOwnerNameText", translator.GetTranslatedString ("MarketPlaceOwnerNameText")); vars.Add ("MainlandEstateNameText", translator.GetTranslatedString ("MainlandEstateNameText")); vars.Add ("SystemEstateNameText", translator.GetTranslatedString ("SystemEstateNameText")); vars.Add ("Save", translator.GetTranslatedString ("Save")); vars.Add ("No", translator.GetTranslatedString ("No")); vars.Add ("Yes", translator.GetTranslatedString ("Yes")); return vars; }