Ejemplo n.º 1
0
        public void FillUpTextFields()
        {
            ResourceName r = (x) => ResourceHandler.GetResource(x);

            ClientUi.tbChatMessageSend           = r("tbChatMessageSend");
            ClientUi.tbServersListFieldLabel     = r("tbServersListFieldLabel");
            ClientUi.EditingModeRadioButtonLabel = r("EditingModeRadioButtonLabel");
            ClientUi.ExpanderLabel = r("ExpanderLabel");
            ClientUi.JoiningModeRadioButtonLabel = r("JoiningModeRadioButtonLabel");
            ClientUi.LanguageFieldLabel          = r("LanguageFieldLabel");
            ClientUi.LeaderAddressFieldLabel     = r("LeaderAddressFieldLabel");
            ClientUi.LeadModeRadioButtonLabel    = r("LeadModeRadioButtonLabel");
            ClientUi.PortFieldLabel     = r("PortFieldLabel");
            ClientUi.YourNameFieldLabel = r("YourNameFieldLabel");

            //    public void LeaderAddressFieldLabel { LeaderAddressFieldLabel = r("YourNameLabel"); }
            //public void YourNameFieldLabel { get; set; }

            //     = r("LeaderName");
            //        LeaderAddressFieldLabel = r("YourNameLabel");
            //        cbLocale.DataSource = new List<string> { "ru-RU", "en-US", "ms-MY" };
        }
Ejemplo n.º 2
0
 public static string GetString(string res)
 {
     return(ResourceHandler.GetResource(res));
 }