Exemple #1
0
        /**
         * Aktualisiert die Optionen in der Ansicht
         */
        private void UpdateMobileDeviceOptionsView()
        {
            MobileDeviceOptions mdo = OptionsAccess.MobileDeviceOptions;

            this.textBoxScreenWidth.Text  = Convert.ToString(mdo.ScreenWidth);
            this.textBoxScreenHeight.Text = Convert.ToString(mdo.ScreenHeight);
        }
Exemple #2
0
        /**
         * Speichert die Optionen ab
         */
        private void SaveMobileDeviceOptions()
        {
            MobileDeviceOptions mdo = OptionsAccess.MobileDeviceOptions;

            mdo.ScreenWidth  = Convert.ToInt32(this.textBoxScreenWidth.Text);
            mdo.ScreenHeight = Convert.ToInt32(this.textBoxScreenHeight.Text);

            OptionsAccess.MobileDeviceOptions = mdo;

            DialogResult = true;
        }