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