Example #1
0
 public MainWindow()
 {
     WynitUpdate.LoadSkus();
     InitializeComponent();
     this.textBox.Text         = Directory.GetCurrentDirectory();
     this.textBox.TextWrapping = TextWrapping.NoWrap;
 }
Example #2
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     if (filename == null)
     {
         MessageBox.Show("No file was selected!");
     }
     else
     {
         try
         {
             WynitUpdate.ReadWynitFile(filename);
             WynitUpdate.GenerateFile();
             MessageBox.Show("Done!");
         }
         catch (IndexOutOfRangeException ex)
         {
             MessageBox.Show("A problem occurred. Make sure the correct file was selected");
         }
         catch (ArgumentException ex)
         {
             MessageBox.Show("A porblem occurred. Make sure the correct file was selected ");
         }
     }
 }