Exemple #1
0
        private void txSQL_TextChanged(object sender, TextChangedEventArgs e)
        {
            ModelStatement ms = (ModelStatement)listBox.SelectedValue;

            if (ms == null)
            {
                return;
            }

            ms.Statement = txSQL.Text;
        }
Exemple #2
0
        private void listBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ModelStatement ms = (ModelStatement)listBox.SelectedValue;

            if (ms == null)
            {
                return;
            }

            txSQL.Text = ms.Statement;
        }