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

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

            this.path             = path;
            this.mapRequiredEvent = mapRequiredEvent;
            filenameTextBox.Text  = Path.GetFileName(path);
        }
예제 #3
0
파일: Replay.cs 프로젝트: sonygod/dotahit
 public Replay(Stream stream, MapRequiredEventHandler mapRequiredEvent)
 {
     using (stream)
     {
         try { size = stream.Length; }
         catch (NotSupportedException)
         { }
         this.mapRequired += mapRequiredEvent;
         Load(stream);
     }
 }
예제 #4
0
파일: Replay.cs 프로젝트: sonygod/dotahit
 public Replay(string fileName, MapRequiredEventHandler mapRequiredEvent)
     : this(File.OpenRead(fileName), mapRequiredEvent)
 {
     this.filename = fileName;
 }