Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((FirstLetter.GetHashCode() * 397) ^ SecondLetter.GetHashCode());
     }
 }
Ejemplo n.º 2
0
            public WordToken(string text, int index, bool isProtected = false)
            {
                this.text        = text;
                this.index       = index;
                this.isProtected = isProtected;

                firstLetter = isProtected
                                                    ? FirstLetter.None
                                                    : char.IsUpper(text, 0)
                                                        ? FirstLetter.Upper
                                                        : char.IsLower(text, 0)
                                                                ? FirstLetter.Lower
                                                                : FirstLetter.None;
            }
        void ReleaseDesignerOutlets()
        {
            if (FullName != null)
            {
                FullName.Dispose();
                FullName = null;
            }

            if (FirstLetter != null)
            {
                FirstLetter.Dispose();
                FirstLetter = null;
            }
        }
Ejemplo n.º 4
0
			public WordToken(string text, int index, bool isProtected = false)
			{
				this.text = text;
				this.index = index;
				this.isProtected = isProtected;

				firstLetter = isProtected
					            ? FirstLetter.None
					            : char.IsUpper(text, 0)
					              	? FirstLetter.Upper
					              	: char.IsLower(text, 0)
					              	  	? FirstLetter.Lower
					              	  	: FirstLetter.None;
			}
Ejemplo n.º 5
0
 private bool Equals(ColumnLetter other)
 {
     return(FirstLetter.Equals(other.FirstLetter) && SecondLetter.Equals(other.SecondLetter));
 }
Ejemplo n.º 6
0
 internal String ToColumnName()
 {
     return(FirstLetter.ToString() + (SecondLetter != null ? SecondLetter.Value.ToString() : ""));
 }
Ejemplo n.º 7
0
 private void textBox1_TextChanged(object sender, EventArgs e)
 {
     this.textBox2.Text = FirstLetter.GetFristLetter(this.textBox1.Text);
 }
Ejemplo n.º 8
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.textBox2.Text = FirstLetter.GetFristLetter(this.textBox1.Text);
 }