Exemple #1
0
        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);
            }
        }
Exemple #2
0
 private void SourceEditor_TextChanged(object sender, EventArgs e)
 {
     SyntaxHandler.SetVisualBasic(SourceEditor);
 }