public SettingsWindow() { InitializeComponent(); // Load settings from file (or just set to default values // if file not found) settings = RaindropSettings.Load(RaindropSettings.SettingsFile); SetSliders(); }
public ScreenForm(System.Drawing.Rectangle screenBounds, bool previewMode) { InitializeComponent(); this.previewMode = previewMode; // ShowInTaskbar="False" ResizeMode="NoResize" WindowStyle="None" this.WindowStyle = WindowStyle.None; this.ResizeMode = ResizeMode.NoResize; this.ShowInTaskbar = false; this.Topmost = true; this.Left = screenBounds.X; this.Top = screenBounds.Y; this.Width = screenBounds.Width; this.Height = screenBounds.Height; // Read in settings from .xml file _settings = RaindropSettings.Load(RaindropSettings.SettingsFile); }