예제 #1
0
 private bool OpenTrace <T>(String path) where T : ITrace, new()
 {
     if (File.Exists(path))
     {
         using (Stream stream = File.OpenRead(path))
         {
             T trace = new T();
             trace.Init(path, stream);
             frames.AddGroup(trace.MainGroup);
             frames.Add(trace.MainFrame);
             FocusOnFrame(trace.MainFrame);
         }
         return(true);
     }
     return(false);
 }