/// <summary> /// Initializes locale property and other settings /// </summary> public void InitializeForm() { IListBox.Items.AddRange(PhotoList.GetData()); ResX.Text = "Width " + Screen.PrimaryScreen.Bounds.Width.ToString() + " Height " + Screen.PrimaryScreen.Bounds.Height.ToString(); if (SettingList.TimeType != TimeUnit.None) { NumericTime.Value = SettingList.Time; TimeUnitBox.SelectedItem = SettingList.TimeType.ToString(); } switch (SettingList.TypeImage) { case ImageType.Tiled: radioButton6.Checked = true; break; case ImageType.Centered: radioButton7.Checked = true; break; case ImageType.Stretched: radioButton8.Checked = true; break; default: break; } RandomBox.Checked = SettingList.Random; SaveImages.Checked = SettingList.SaveImage; StartUpApplication.Checked = SettingList.StartUpApplication; if (SettingList.StartUpApplication && SettingList.StartUpProgram) { Start(); WindowState = FormWindowState.Minimized; } Containers = new ISavable[] { PhotoList, SettingList }; }