Ejemplo n.º 1
0
 public Demo(string title, string description, string imageName, int duration)
 {
     this.title       = title;
     this.description = description;
     this.imageName   = new Uri(Environment.CurrentDirectory + Path.DirectorySeparatorChar + imageName);
     try
     {
         this.image = new BitmapImage(this.imageName);
     }
     catch
     {
         this.image = null;
     }
     this.duration = duration;
     this.box      = new DemoBox(title, image);
 }
Ejemplo n.º 2
0
 public Demo(string title, string description, string imageName, int duration)
 {
     this.title = title;
     this.description = description;
     this.imageName = new Uri(Environment.CurrentDirectory + Path.DirectorySeparatorChar + imageName);
     try
     {
         this.image = new BitmapImage(this.imageName);
     }
     catch
     {
         this.image = null;
     }
     this.duration = duration;
     this.box = new DemoBox(title, image);
 }