示例#1
0
 private void submitFeatureButton_Click(object sender, RoutedEventArgs e)
 {
     if (featureTextBox.Text.Length == 0)
     {
         MessageBox.Show("Please enter a feature", "Faild to submit", MessageBoxButton.OK, MessageBoxImage.None);
     }
     else
     {
         SQLQuery mSQLQuery = new SQLQuery();
         mSQLQuery.insertFeature(featureTextBox.Text);
         MessageBox.Show("Feature added successfully!", "Submission done!", MessageBoxButton.OK, MessageBoxImage.None);
     }
 }