public void SetText(string Text) { if (this.InvokeRequired) { SetText_d STD = new SetText_d(SetText); this.Invoke(STD, new object[] { Text }); } else { this.Text = Text; } }
public void SetText(string Text, string EncodingType) { if (MainText.InvokeRequired) { SetText_d UiDelegate = new SetText_d(SetText); MainText.Invoke(UiDelegate, new object[] { Text, EncodingType }); } else { SetTextValue(Text, Tools.IsBinary(Text)); Encoding EncToUse = Encoding.GetEncoding(EncodingType); SetHex(EncToUse.GetBytes(Text)); this.EncodingType = EncodingType; this.ResetChangedStatus(); Find(); } }
public void SetText(string Text) { if (this.IsDisposed) { return; } if (this.InvokeRequired) { SetText_d STD = new SetText_d(SetText); this.OutputTB.Invoke(STD, new object[] { Text }); } else { this.OutputTB.Text = Text; this.OutputTB.SelectionStart = this.OutputTB.Text.Length; this.OutputTB.ScrollToCaret(); } }
public void SetText(string Text, string EncodingType) { if (MainText.InvokeRequired) { SetText_d UiDelegate = new SetText_d(SetText); MainText.Invoke(UiDelegate, new object[] { Text, EncodingType }); } else { SetTextValue(Text, Tools.IsBinary(Text)); Encoding EncToUse = Encoding.GetEncoding(EncodingType); SetHexValue(EncToUse.GetBytes(Text)); this.EncodingType = EncodingType; this.ResetChangedStatus(); if (IsInBinaryMode) { if (!MainTabs.SelectedTab.Name.Equals("HexTab")) { MainTabs.SelectTab("HexTab"); } } Find(); } }
public void SetText(string Text) { if (this.IsDisposed) return; if (this.InvokeRequired) { SetText_d STD = new SetText_d(SetText); this.OutputTB.Invoke(STD, new object[] { Text }); } else { this.OutputTB.Text = Text; this.OutputTB.SelectionStart = this.OutputTB.Text.Length; this.OutputTB.ScrollToCaret(); } }