private void cboLanguage_SelectedIndexChanged(object sender, EventArgs e) { try { DestinationEditor.Clear(); if (cboLanguage.Text == "VB .NET") { SyntaxHandler.SetVisualBasic(SourceEditor); } else { SyntaxHandler.SetCSharp(SourceEditor); } } catch (Exception ex) { Debug.WriteLine(ex.ToString()); MessageBox.Show("It's not possible to select the destination language. \n\nDetails: " + ex.Message, "VB Converter", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void DestinationEditor_TextChanged(object sender, EventArgs e) { SyntaxHandler.SetCSharp(DestinationEditor); }