Ejemplo n.º 1
0
 void App_Startup(object sender, StartupEventArgs e)
 {
     try
     {
         Mwindow = new MainWindow();
         Mwindow.Title = "Media Manager";
         Mwindow.Show();
         DatabaseManager.InitializeManager();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message); 
     }
 }
Ejemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Window = ((MediaManager.MainWindow)(target));
     return;
     case 2:
     this.MainViewBox = ((System.Windows.Controls.Viewbox)(target));
     return;
     case 3:
     this.LayoutGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.AddMovScreen = ((MediaManager.AddMovieScreen)(target));
     return;
     case 5:
     this.ViewMovScreen = ((MediaManager.ViewFilmsScreen)(target));
     return;
     case 6:
     this.MMovieScreen = ((MediaManager.MainMovieScreen)(target));
     return;
     case 7:
     this.SScreen = ((MediaManager.SplashScreen)(target));
     return;
     }
     this._contentLoaded = true;
 }