Example #1
0
 public void SetBytes(byte[] Bytes, string EncodingType)
 {
     if (MainHex.InvokeRequired)
     {
         SetBytes_d UiDelegate = new SetBytes_d(SetBytes);
         MainHex.Invoke(UiDelegate, new object[] { Bytes, EncodingType });
     }
     else
     {
         SetHex(Bytes);
         Encoding EncToUse = Encoding.GetEncoding(EncodingType);
         this.EncodingType = EncodingType;
         SetTextValue(EncToUse.GetString(Bytes), Tools.IsBinary(Bytes));
         this.ResetChangedStatus();
         Find();
     }
 }
Example #2
0
 public void SetBytes(byte[] Bytes, string EncodingType)
 {
     if (MainHex.InvokeRequired)
     {
         SetBytes_d UiDelegate = new SetBytes_d(SetBytes);
         MainHex.Invoke(UiDelegate, new object[] { Bytes, EncodingType });
     }
     else
     {
         SetHexValue(Bytes);
         Encoding EncToUse = Encoding.GetEncoding(EncodingType);
         this.EncodingType = EncodingType;
         SetTextValue(EncToUse.GetString(Bytes), Tools.IsBinary(Bytes));
         this.ResetChangedStatus();
         if (IsInBinaryMode)
         {
             if (!MainTabs.SelectedTab.Name.Equals("HexTab"))
             {
                 MainTabs.SelectTab("HexTab");
             }
         }
         Find();
     }
 }
Example #3
0
 public void SetBytes(byte[] Bytes, string EncodingType)
 {
     if (MainHex.InvokeRequired)
     {
         SetBytes_d UiDelegate = new SetBytes_d(SetBytes);
         MainHex.Invoke(UiDelegate, new object[] { Bytes, EncodingType });
     }
     else
     {
         SetHex(Bytes);
         Encoding EncToUse = Encoding.GetEncoding(EncodingType);
         this.EncodingType = EncodingType;
         SetTextValue(EncToUse.GetString(Bytes), Tools.IsBinary(Bytes));
         this.ResetChangedStatus();
         Find();
     }
 }