/// <summary> /// Create and initialize a new MainWindow /// </summary> public MainWindow() { WindowStyle = WindowStyle.None; WindowState = WindowState.Maximized; Visibility = Visibility.Visible; Title = "Digital Publication Display"; Loaded += delegate { UpdateDisplay(); }; Loaded += StartServer; Closed += StopServer; // set up a 1 by 3 grid to hold PublicationCanvas objects grid = new Grid(); grid.ColumnDefinitions.Add(new ColumnDefinition()); grid.RowDefinitions.Add(new RowDefinition()); grid.RowDefinitions.Add(new RowDefinition()); grid.RowDefinitions.Add(new RowDefinition()); Content = grid; publicationCache = new OCLC.Database(); server = new Management_Interface.ManagementServer(); DisableEdgeGestures(); }