private void OnClosed(object sender, FormClosedEventArgs e) { ThrottleSpeed = ThrottleSpeedCheckBox.Checked; SlowPhosphor = SlowPhosphorCheckBox.Checked; HostPacketInterfaceName = ((EthernetInterface)EthernetInterfaceListBox.SelectedItem).Name; if (CurrentTimeDateRadioButton.Checked) { TODSetMode = TODPowerUpSetMode.HostTime; } else if (CurrentTimeDateY2KRadioButton.Checked) { TODSetMode = TODPowerUpSetMode.HostTimeY2K; } else if (SpecifiedTimeDateRadioButton.Checked) { TODSetMode = TODPowerUpSetMode.SpecificDateAndTime; TODDateTime = TODDateTimePicker.Value; } else if (SpecifiedDateRadioButton.Checked) { TODSetMode = TODPowerUpSetMode.SpecificDate; TODDate = TODDatePicker.Value; } else if (NoTimeDateChangeRadioButton.Checked) { TODSetMode = TODPowerUpSetMode.NoChange; } }
private static void ReadConfigurationWindows() { MemorySize = Properties.Settings.Default.MemorySize; HardDriveImage = Properties.Settings.Default.HardDriveImage; FloppyDriveImage = Properties.Settings.Default.FloppyDriveImage; HostID = Properties.Settings.Default.HostAddress; HostPacketInterfaceName = Properties.Settings.Default.HostPacketInterfaceName; ThrottleSpeed = Properties.Settings.Default.ThrottleSpeed; DisplayScale = Properties.Settings.Default.DisplayScale; SlowPhosphor = Properties.Settings.Default.SlowPhosphor; TODSetMode = (TODPowerUpSetMode)Properties.Settings.Default.TODSetMode; TODDateTime = Properties.Settings.Default.TODDateTime; TODDate = Properties.Settings.Default.TODDate; }