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