/[RomCheater]/trunk/Win32/libWin32/Win32/UI/MaskedHexBox.cs
ViewVC logotype

Diff of /trunk/Win32/libWin32/Win32/UI/MaskedHexBox.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 287 by william, Tue Jun 5 08:52:07 2012 UTC revision 575 by william, Thu Jun 6 07:46:38 2013 UTC
# Line 78  namespace System.Windows.Forms Line 78  namespace System.Windows.Forms
78              get { return txtMaskedHexBox.Text.PadRight(this.TextLength + 2, '0'); }              get { return txtMaskedHexBox.Text.PadRight(this.TextLength + 2, '0'); }
79              set { txtMaskedHexBox.Text = value; }              set { txtMaskedHexBox.Text = value; }
80          }          }
81          public long Value          public ulong Value
82          {          {
83              get { return this.ToInt64(); }              get { return this.ToUInt64(); }
84              set              set
85              {              {
86                  long old_value = this.Value;                  ulong old_value = this.Value;
87                  switch (this.TextLength)                  switch (this.TextLength)
88                  {                  {
89                      case 0:                      case 0:
# Line 97  namespace System.Windows.Forms Line 97  namespace System.Windows.Forms
97                      case 8: this.Text = string.Format("0x{0:x8}", value); break;                      case 8: this.Text = string.Format("0x{0:x8}", value); break;
98                      default: this.Text = string.Format("0x{0:x" + this.TextLength + "}", value); break;                      default: this.Text = string.Format("0x{0:x" + this.TextLength + "}", value); break;
99                  }                  }
100                  long new_value = this.Value;                  ulong new_value = this.Value;
101                  if ((new_value!= old_value) && ValueChanged != null)                  if ((new_value!= old_value) && ValueChanged != null)
102                      ValueChanged(this, new ValueChangedEventArgs(old_value, new_value));                      ValueChanged(this, new ValueChangedEventArgs(old_value, new_value));
103              }              }

Legend:
Removed from v.287  
changed lines
  Added in v.575

  ViewVC Help
Powered by ViewVC 1.1.22