Example #1
0
        public ReplayDataExtractForm(string path, MapRequiredEventHandler mapRequiredEvent)
        {
            InitializeComponent();

            this.path = path;
            this.mapRequiredEvent = mapRequiredEvent;
            filenameTextBox.Text = Path.GetFileName(path);
        }
Example #2
0
        public ReplayDataExtractForm(string path, MapRequiredEventHandler mapRequiredEvent)
        {
            InitializeComponent();

            this.path             = path;
            this.mapRequiredEvent = mapRequiredEvent;
            filenameTextBox.Text  = Path.GetFileName(path);
        }
Example #3
0
 public Replay(Stream stream, MapRequiredEventHandler mapRequiredEvent)
 {
     using (stream)
     {
         try { size = stream.Length; }
         catch (NotSupportedException)
         { }
         this.mapRequired += mapRequiredEvent;
         Load(stream);
     }
 }
Example #4
0
 public Replay(string fileName, MapRequiredEventHandler mapRequiredEvent)
     : this(File.OpenRead(fileName), mapRequiredEvent)
 {
     this.filename = fileName;
 }