Exemple #1
0
 private void HaxxStationBannerSave_click(object sender, RoutedEventArgs e)
 {
     DownloadStationPatcher.HaxxStationBanner(haxxStationTextBox.Text, haxxStationTextBox2.Text, haxxStationTextBox3.Text);
     if (!DownloadStationPatcher.title.Equals("HaxxStation") || !DownloadStationPatcher.subTitle1.Equals("By Gericom, shutterbug2000") || !DownloadStationPatcher.subTitle2.Equals("and Apache Thunder"))
     {
         MessageBox.Show("You have successfully changed the banner!", "Success", MessageBoxButton.OK, MessageBoxImage.Information);
     }
     else
     {
         MessageBox.Show("Something went wrong with changing the banner!", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Exemple #2
0
        private void HaxxStationBannerSave_click(object sender, RoutedEventArgs e)
        {
            DownloadStationPatcher.HaxxStationBanner(haxxStationTextBox.Text, haxxStationTextBox2.Text, haxxStationTextBox3.Text);

            //Checks if characters were changed, far from fool-proof and would need to be made better. But it works for now.
            if (!DownloadStationPatcher.title.Equals("HaxxStation") || !DownloadStationPatcher.subTitle1.Equals("By Gericom, shutterbug2000") || !DownloadStationPatcher.subTitle2.Equals("and Apache Thunder"))
            {
                MessageBox.Show("You have successfully changed the banner!", "Success", MessageBoxButton.OK, MessageBoxImage.Information);
            }
            else
            {
                MessageBox.Show("Something went wrong with changing the banner!", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }