Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="filePath"></param>
        public void OpenFile(string filePath)
        {
            FilePath = filePath;

            RawHSDFile = new HSDRawFile();
            RawHSDFile.Open(filePath);
            RefreshTree();

#if !DEBUG
            if (RawHSDFile.Roots.Count > 0 && RawHSDFile.Roots[0].Data is HSDRaw.MEX.MEX_Data)
            {
                if (nodeBox.Visible)
                {
                    // hide nodes
                    showHideButton_Click(null, null);

                    // select the mexData node
                    treeView1.SelectedNode = treeView1.Nodes[0];

                    // open the editor
                    OpenEditor();
                }
            }
#endif

            Text = "HSD DAT Browser - " + filePath;
        }
Ejemplo n.º 2
0
 public void OpenFile(Stream s)
 {
     this.OpenFileStream = new MemoryStream();
     s.CopyTo(this.OpenFileStream);
     s.Position = 0;
     RawHSDFile = new HSDRawFile();
     RawHSDFile.Open(s);
     RefreshTree();
 }
Ejemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="filePath"></param>
        private void OpenFile(string filePath)
        {
            FilePath = filePath;

            RawHSDFile = new HSDRawFile();
            RawHSDFile.Open(filePath);
            RefreshTree();

            Text = "HSD DAT Browser - " + filePath;
        }