private void InitializeConfiguration() { //set title _labelTitle.Text = ""; //set buttons _buttonClose.Text = ""; _buttonInfo.Text = ""; _buttonLogin.Text = ""; _buttonLogin.Show(); _buttonPlay.Text = ""; _buttonPlay.Hide(); //load title text try { _labelTitle.Text = Configuration.GetLauncherTitle(); } catch { _labelTitle.Text = "Tera cTLauncher"; } //load exit button try { _buttonClose.Image = Image.FromFile(Configuration._dataDir + InterfaceSkin.GetCloseButtonNormal()); } catch { _buttonClose.Text = "X"; } //load info button try { _buttonInfo.Image = Image.FromFile(Configuration._dataDir + InterfaceSkin.GetInfoButtonNormal()); } catch { _buttonInfo.Text = "I"; } //load login button try { _buttonLogin.Image = Image.FromFile(Configuration._dataDir + InterfaceSkin.GetLoginButtonNormal()); } catch { _buttonLogin.Text = "Login"; } //load play button try { _buttonPlay.Image = Image.FromFile(Configuration._dataDir + InterfaceSkin.GetPlayButtonNormal()); } catch { _buttonPlay.Text = "Play"; } //load language languageGame = Configuration.GetLanguageGame(); languageId = Configuration.GetLanguageId(); _comboboxLanguage.Items.AddRange(new object[4] { "", "English", "French", "German", }); _comboboxLanguage.SelectedIndex = languageId; //load browser try { _webbrowserNews.Url = browserUrl; } catch { } }
private void _btnLogin_Leave(object sender, EventArgs e) { try { _buttonLogin.Image = Image.FromFile(Configuration._dataDir + InterfaceSkin.GetLoginButtonNormal()); } catch { _buttonLogin.Text = "Login"; } }