private void btnSimplePointSprite_Click(object sender, EventArgs e) { FormSimplePointSpriteSettings settings = new FormSimplePointSpriteSettings(); if (settings.ShowDialog() == System.Windows.Forms.DialogResult.OK) { float fontSize = settings.FontSize; bool foreshortening = settings.Foreshortening; var type = settings.FragmentShaderType; (new FormSimplePointSprite(fontSize, foreshortening, type)).Show(); } }