Exemple #1
0
        public void ShowInputFadeDialogBox()
        {
            Input_Fade inputDialog = new Input_Fade();

            if (inputDialog.ShowDialog() == true)
            {
                string fadeTime    = inputDialog.Channel;
                int    fadeTimeInt = 0;

                int.TryParse(fadeTime, out fadeTimeInt);

                SettingsSingleton.Instance.genSettings.FadeChat = (fadeTimeInt > 0);
                SettingsSingleton.Instance.genSettings.FadeTime = fadeTime;
            }
        }
Exemple #2
0
        public void ShowInputFadeDialogBox()
        {
            Input_Fade inputDialog = new Input_Fade();

            if (inputDialog.ShowDialog() == true)
            {
                string fadeTime    = inputDialog.Channel;
                int    fadeTimeInt = 0;

                int.TryParse(fadeTime, out fadeTimeInt);

                // 0 (or less) to disable fade with "false"
                if (fadeTimeInt <= 0)
                {
                    fadeTime = "false";
                }

                this.fade = fadeTime;
                AppSettings.Default.fade = fade;
                AppSettings.Default.Save();
                AppSettings.Default.Reload();
            }
        }