Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.29 KB | None | 0 0
  1. public partial class MainWindow
  2.     {
  3.         public readonly CrackerDetails CrackerStats = new CrackerDetails();
  4.         public ComboSys ComboSystem = new ComboSys();
  5.  
  6.         public MainWindow()
  7.         {
  8.             InitializeComponent();
  9.  
  10.  
  11.             DataContext = new
  12.             {
  13.                 CrackerStats,
  14.                 ComboSystem
  15.             };
  16.         }
  17.  
  18.         private void Button_Click(object sender, RoutedEventArgs e)
  19.         {
  20.             switch (((Button) sender).Tag.ToString())
  21.             {
  22.                 case "START":
  23.                     MessageBox.Show("START");
  24.                     break;
  25.                 case "STOP":
  26.                     MessageBox.Show("STOP");
  27.                     break;
  28.                 case "LOADCOMBOS":
  29.                     var openCombos = new OpenFileDialog
  30.                     {
  31.                         Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*",
  32.                         Title = "Open Combos!"
  33.                     };
  34.                     if (openCombos.ShowDialog() == true)
  35.                         ComboSystem.LoadCombos(openCombos.FileName);
  36.                     break;
  37.                 case "LOADPROXIES":
  38.                     MessageBox.Show("LOADPROXIES");
  39.                     break;
  40.             }
  41.         }
  42.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement