/** * 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); }
/** * 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; }