/// <summary>
        /// Initialize stream and hexeditor
        /// </summary>
        private void InitializeMStream(HexEditor hexeditor, byte[] findData = null)
        {
            hexeditor.CloseProvider();

            var ms = new MemoryStream(1);

            if (findData is not null && findData.Length > 0)
            {
                foreach (byte b in findData)
                {
                    ms.WriteByte(b);
                }
            }
        private void DisplayInformation(ManifestChunk chunk)
        {
            ByteStartOffsetBox.Text = chunk.Offset.ToString();
            ByteEndOffsetBox.Text   = chunk.EndOffset.ToString();
            ByteSizeBox.Text        = chunk.Size.ToString();
            AnonByteBox.Text        = chunk.Extra.ToString();
            NameLabel.Text          = chunk.Name;
            ColorDisplay.Background = FileMapBorders[chunk].Background;
            OpenChunk = chunk;
            var path = System.IO.Path.Combine(DestinationBox.Text, chunk.Name);

            if (File.Exists(path))
            {
                OpenFileButton.IsEnabled = true;
                HexEditor.FileName       = path;
            }
            else
            {
                OpenFileButton.IsEnabled = false;
                HexEditor.CloseProvider();
            }
            Title = $"MV - Viewing {chunk.Name}";
        }
 private void OpenFileButton_Click(object sender, RoutedEventArgs e)
 {
     HexEditor.CloseProvider();
     Process.Start(System.IO.Path.Combine(DestinationBox.Text, OpenChunk.Name));
 }