예제 #1
0
 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;
     }
 }
예제 #2
0
파일: ModUi.cs 프로젝트: mskr30/IronWASP
 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;
     }
 }
예제 #3
0
 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();
     }
 }
예제 #4
0
 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();
     }
 }
예제 #5
0
 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();
     }
 }
예제 #6
0
 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();
     }
 }
예제 #7
0
 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();
     }
 }