Beispiel #1
0
 private void dgUnicodeTestMappings_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 0)
     {
         UnicodeTestCase mapping = (UnicodeTestCase)this.dgUnicodeTestMappings.CurrentRow.DataBoundItem;
         if (mapping.Enabled)
         {
             mapping.Enabled = false;
         }
         else
         {
             mapping.Enabled = true;
         }
     }
 }
Beispiel #2
0
 private void dgUnicodeTestMappings_SelectionChanged(object sender, EventArgs e)
 {
     if (this.dgUnicodeTestMappings.CurrentRow != null)
     {
         UnicodeTestCase mapping = (UnicodeTestCase)this.dgUnicodeTestMappings.CurrentRow.DataBoundItem;
         this.richTextBox2.Text           = mapping.Description;
         this.lblChrNameValue.Text        = mapping.SourcePoint.Name;
         this.lblSourceCodePointText.Text = mapping.SourcePoint.ToHexStringCodePoint();
         if (mapping.Target != null)
         {
             this.lblTargetCodePoint.Visible     = true;
             this.lblTargetCodePointText.Visible = true;
             this.lblTargetCodePointText.Text    = mapping.Target.ToHexStringCodePoint();
         }
         else
         {
             this.lblTargetCodePoint.Visible     = false;
             this.lblTargetCodePointText.Visible = false;
         }
     }
 }