示例#1
0
 private void enableRandomPhrase_Checked(object sender, RoutedEventArgs e)
 {
     if (enableRandomPhrase.IsChecked == true)
     {
         enableMessageBox2.IsChecked  = false;
         enableImageToASCII.IsChecked = false;
         spamFlag = spamMethod.randomPhrase;
     }
 }
示例#2
0
 private void enableMessageBox2_Checked(object sender, RoutedEventArgs e)
 {
     if (enableMessageBox2.IsChecked == true)
     {
         enableImageToASCII.IsChecked = false;
         enableRandomPhrase.IsChecked = false;
         spamFlag = spamMethod.twoMessage;
     }
     //This function is not working
     else if (enableMessageBox2.IsChecked == false)
     {
         if (enableImageToASCII.IsChecked == false && enableRandomPhrase.IsChecked == false)
         {
             spamFlag = spamMethod.oneMessage;
         }
     }
 }