예제 #1
0
파일: Demo.cs 프로젝트: RTSYork/RTSScreen
 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);
 }
예제 #2
0
파일: Demo.cs 프로젝트: RTSYork/RTSScreen
 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);
 }