예제 #1
0
 public ChampionPanel(TextBox champTextBox, ComboBox parentComboBox, Button parentStart, Button parentReset, ProgBarWithText parentProgBar)
 {
     this.champTextBoxCopy         = champTextBox;
     champTextBox.KeyDown         += OnKeyDownHandler;
     this.championName             = champTextBox.Text;
     this.utilityBox               = parentComboBox;
     this.utilityBox.SelectedIndex = 0;
     this.start                       = parentStart;
     this.reset                       = parentReset;
     this.timer                       = new TimerWithSpeech(this, parentProgBar);
     start.Click                     += StartClick;
     reset.Click                     += ResetClick;
     this.reset.IsEnabled             = false;
     parentComboBox.SelectionChanged += ComboBox_SelectionChanged;
 }
예제 #2
0
 public ChampionPanel(TextBox champTextBox, ComboBox parentComboBox, Button parentStart, Button parentReset, ProgBarWithText parentProgBar)
 {
     this.champTextBoxCopy = champTextBox;
     champTextBox.KeyDown += OnKeyDownHandler;
     this.championName = champTextBox.Text;
     this.utilityBox = parentComboBox;
     this.utilityBox.SelectedIndex = 0;
     this.start = parentStart;
     this.reset = parentReset;
     this.timer = new TimerWithSpeech(this, parentProgBar);
     start.Click += StartClick;
     reset.Click += ResetClick;
     this.reset.IsEnabled = false;
     parentComboBox.SelectionChanged += ComboBox_SelectionChanged;
 }