private void glCanvas1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 'b')
{
BlendingSourceFactor source;
BlendingDestinationFactor dest;
this.blendFactorHelper.GetNext(out source, out dest);
this.glText.BlendState.SourceFactor = source;
this.glText.BlendState.DestFactor = dest;
this.UpdateLabel();
}
else if (e.KeyChar == '1')
{
var frmPropertyGrid = new FormProperyGrid(this.scene);
frmPropertyGrid.Show();
}
else if (e.KeyChar == '2')
{
var frmPropertyGrid = new FormProperyGrid(this.glCanvas1);
frmPropertyGrid.Show();
}
}