At.FF.Krems.Config_Gui.BrowserConfigViewModel.BrowserConfigViewModel C# (CSharp) Method

BrowserConfigViewModel() public method

Initializes a new instance of the BrowserConfigViewModel class.
public BrowserConfigViewModel ( ) : System
return System
        public BrowserConfigViewModel()
        {
            this.Config = new BrowserConfig { PrintSettings = new PrintSettings(), ScreenRefresher = new ScreenRefresher { Duration = 30, Enabled = true, Height = 50, Interval = 60, RunAtStartup = true }, ClearCookiesAtStartup = false, Proxy = new WindowProxy { Type = ProxyType.NoProxy } };
            this.Windows = new ObservableCollection<Window>();
            this.Windows.CollectionChanged += (sender, args) =>
            {
                this.Config.Window = ((ObservableCollection<Window>)sender).ToArray();
            };
            this.Windows.Add(new Window { Autostart = true, OnTop = true, Name = "Infoscreen", Url = "https://infoscreen.florian10.info", ShowOnScreen = 1, ZoomLevel = 1f, Position = new WindowPosition { PosX = 0, PosY = 0 }, Dimensions = new WindowDimensions { Width = "max2", Height = "max" }, ReloadInSeconds = 86400 });
            this.Windows.Add(new Window { Autostart = true, OnTop = true, Name = "Infoscreen Ruhebildschirm", Url = "http://www.feuerwehr-krems.at/Warnung/teaser_noe_all.asp", IsAlternativeWindow = true, ShowOnScreen = 1, ZoomLevel = 1f, Position = new WindowPosition { PosX = 0, PosY = 0 }, Dimensions = new WindowDimensions { Width = "max2", Height = "max" } });
            this.SelectedWindow = this.Windows[0];
            this.Cookies = new ObservableCollection<Cookie>();
            this.Cookies.CollectionChanged += (sender, args) => this.Config.Cookie = ((ObservableCollection<Cookie>)sender).ToArray();
            this.EnableEventHandler();
        }