Пример #1
0
        //MinimizeButton-hover
        public static String GetMinimizeButtonHover(String defaultValue = "btn-minimize-hv.png")
        {
            String _btn_minimize_hv = defaultValue;

            try
            {
                _btn_minimize_hv = IniReader.ReadValue("Skin", "btnMinimizeHv", LoginForm.configFile);
                if (_btn_minimize_hv == "")
                {
                    _btn_minimize_hv = defaultValue;
                    IniReader.WriteValue("Skin", "btnMinimizeHv", "btn-minimize-hv.png", LoginForm.configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_btn_minimize_hv);
        }
Пример #2
0
        //Register Background
        public static String GetRegisterBackground(String defaultValue = "register-bg.png")
        {
            String _backgroundRegister = defaultValue;

            try
            {
                _backgroundRegister = IniReader.ReadValue("Skin", "registerBackground", LoginForm.configFile);
                if (_backgroundRegister == "")
                {
                    _backgroundRegister = defaultValue;
                    IniReader.WriteValue("Skin", "registerBackground", "register-bg.png", LoginForm.configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_backgroundRegister);
        }
Пример #3
0
        //MinimizeButton-normal
        public static String GetMinimizeButtonNormal(String defaultValue = "btn-minimize-nm.png")
        {
            String _btn_minimize_nm = defaultValue;

            try
            {
                _btn_minimize_nm = IniReader.ReadValue("Skin", "btnMinimizeNm", LoginForm.configFile);
                if (_btn_minimize_nm == "")
                {
                    _btn_minimize_nm = defaultValue;
                    IniReader.WriteValue("Skin", "btnMinimizeNm", "btn-minimize-nm.png", LoginForm.configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_btn_minimize_nm);
        }
Пример #4
0
        //LanguageGame
        public static String GetLanguageGame(String defaultValue = "en")
        {
            String _language_game = defaultValue;

            try
            {
                _language_game = IniReader.ReadValue("Launcher", "languageGame", LoginForm.configFile);
                if (_language_game == "")
                {
                    _language_game = defaultValue;
                    IniReader.WriteValue("Launcher", "languageGame", "en", LoginForm.configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_language_game);
        }
Пример #5
0
        //PictureBoxNews
        public static String GetPictureBoxNews(String defaultValue = "pbox-news.png")
        {
            String _pbox_news = defaultValue;

            try
            {
                _pbox_news = IniReader.ReadValue("Skin", "pboxNews", LoginForm.configFile);
                if (_pbox_news == "")
                {
                    _pbox_news = defaultValue;
                    IniReader.WriteValue("Skin", "pboxNews", "pbox-news.png", LoginForm.configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_pbox_news);
        }
Пример #6
0
        //RegisterButton-hover
        public static String GetRegisterButtonHover(String defaultValue = "btn-register-hv.png")
        {
            String _btn_register_hv = defaultValue;

            try
            {
                _btn_register_hv = IniReader.ReadValue("Skin", "btnRegisterHv", LoginForm.configFile);
                if (_btn_register_hv == "")
                {
                    _btn_register_hv = defaultValue;
                    IniReader.WriteValue("Skin", "btnRegisterHv", "btn-register-hv.png", LoginForm.configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_btn_register_hv);
        }
Пример #7
0
        //RegisterButton-normal
        public static String GetRegisterButtonNormal(String defaultValue = "btn-register-nm.png")
        {
            String _btn_register_nm = defaultValue;

            try
            {
                _btn_register_nm = IniReader.ReadValue("Skin", "btnRegisterNm", LoginForm.configFile);
                if (_btn_register_nm == "")
                {
                    _btn_register_nm = defaultValue;
                    IniReader.WriteValue("Skin", "btnRegisterNm", "btn-register-nm.png", LoginForm.configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_btn_register_nm);
        }
Пример #8
0
        //Launcher Title
        public static String GetLauncherTitle(String defaultValue = "tera-online custom-launcher beta.a2")
        {
            String _titleLauncher = defaultValue;

            try
            {
                _titleLauncher = IniReader.ReadValue("Launcher", "launcherTitle", LoginForm.configFile);
                if (_titleLauncher == "")
                {
                    _titleLauncher = defaultValue;
                    IniReader.WriteValue("Launcher", "launcherTitle", "tera-online custom-launcher beta.a2", LoginForm.configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_titleLauncher);
        }