Exemple #1
0
        private void SwLockPortrait_CheckedChange(object sender, CompoundButton.CheckedChangeEventArgs e)
        {
            var sw = PageFragment.view4.FindViewById <Switch>(Resource.Id.swLockPortrait);

            if (sw.Checked)
            {
                Nastaveni.LockPortrait = true;
                Nastaveni.SaveSetting("LockPortrait", true);
            }
            else
            {
                Nastaveni.LockPortrait = false;
                Nastaveni.SaveSetting("LockPortrait", false);
            }
        }
Exemple #2
0
        private void SwLineBreaks_CheckedChange(object sender, CompoundButton.CheckedChangeEventArgs e)
        {
            var sw = PageFragment.view4.FindViewById <Switch>(Resource.Id.swLineBreaks);

            if (sw.Checked)
            {
                Nastaveni.NoLineBreaks = true;
                Nastaveni.SaveSetting("NoLineBreaks", true);
            }
            else
            {
                Nastaveni.NoLineBreaks = false;
                Nastaveni.SaveSetting("NoLineBreaks", false);
            }
        }
Exemple #3
0
        private void SwStatusBar_CheckedChange(object sender, CompoundButton.CheckedChangeEventArgs e)
        {
            var sw = PageFragment.view4.FindViewById <Switch>(Resource.Id.swHideStatusBar);

            if (sw.Checked)
            {
                Nastaveni.HideStatusBar = true;
                Nastaveni.SaveSetting("HideStatusBar", true);
            }
            else
            {
                Nastaveni.HideStatusBar = false;
                Nastaveni.SaveSetting("HideStatusBar", false);
            }
        }
Exemple #4
0
        private void SwChorusMany_CheckedChange(object sender, CompoundButton.CheckedChangeEventArgs e)
        {
            var sw = PageFragment.view4.FindViewById <Switch>(Resource.Id.swChorusMany);

            if (sw.Checked)
            {
                Nastaveni.ChorusMany = true;
                Nastaveni.SaveSetting("ChorusMany", true);
            }
            else
            {
                Nastaveni.ChorusMany = false;
                Nastaveni.SaveSetting("ChorusMany", false);
            }
        }