private void payTipsOkBtnClick(object sender, RoutedEventArgs e) { FadeExtension.FadeOutBoxOf(PayTipsBox, PayTipsBoxContent); string auth = TipsAuthCodeBox.Text; alwaysAllowPay = AlwaysPayCheck.IsChecked == true; tips(auth); }
private void ipOkBtnClick(object sender, RoutedEventArgs e) { ip = IPBox.Text; System.Net.IPAddress address = null; if (System.Net.IPAddress.TryParse(ip, out address)) { if (int.TryParse(PortBox.Text, out port) && int.TryParse(InPortBox.Text, out inport)) { isHost = HostCheck.IsChecked == true; //Do something initialize(); FadeExtension.FadeOutBoxOf(ConnectionBox, ConnectionBoxContent); } } }
private void setFirstBtnOKClick(object sender, RoutedEventArgs e) { if (FirstStartComboBox.SelectedIndex < 0) { return; } else { FirstIndex = FirstStartComboBox.SelectedIndex; } //if (TryInitPlayers() == false) return; FadeExtension.FadeOutBoxOf(FirstSelectBox, FirstSelectBoxContent); if (GameMode != GameMode.PvPOnline) { ensureStart(); } }
private void levelOkBtnClick(object sender, RoutedEventArgs e) { FadeExtension.FadeOutBoxOf(LevelSelectBox, LevelBoxContent); //Active first player selection when selected level initialize(); }
private void payTipsCancelBtnClick(object sender, RoutedEventArgs e) { FadeExtension.FadeOutBoxOf(PayTipsBox, PayTipsBoxContent); }