void tas_ConnectionLost(object sender, TasEventArgs e) { Stop(); }
void TasClient_ConnectionLost(object sender, TasEventArgs e) { Reset(); }
void tas_UserRemoved(object sender, TasEventArgs e) { SendCommand(gatherScript, "a=removeplayer&name=" + e.ServerParams[0], true, true); }
void client_LoginAccepted(object sender, TasEventArgs e) { using (var db = new ZkDataContext()) foreach (var c in db.LobbyChannelSubscriptions.Select(x => x.Channel).Distinct()) client.JoinChannel(c); }
// im connected, let's login void tas_Connected(object sender, TasEventArgs e) { tas.Login(config.AccountName, config.AccountPassword, MainConfig.SpringieVersion); }
void tas_BattleLockChanged(object sender, TasEventArgs e) { SayBattle("game " + (tas.GetBattle().IsLocked ? "locked" : "unlocked")); }
void tas_MyStatusChangedToInGame(object sender, TasEventArgs e) { spring.StartGame(tas.GetBattle()); }
void tas_ConnectionLost(object sender, TasEventArgs e) { recon.Start(); }
void tas_LoginDenied(object sender, TasEventArgs e) { recon.Start(); }
void tas_Connected(object sender, TasEventArgs e) { tas.Login(config.AccountName, config.AccountPassword); }
void OnLoginAccepted(object sender, TasEventArgs tasEventArgs) { var tas = (TasClient)sender; foreach (var chan in channels) if (!tas.JoinedChannels.ContainsKey(chan)) tas.JoinChannel(chan); }
void TasOnBattleUserStatusChanged(object sender, TasEventArgs tasEventArgs) { PlayerCountDecreased(); }
void TasClient_ConnectionLost(object sender, TasEventArgs e) { toolTabs.DisposeAllTabs(); AddBattleControl(); }
void tas_BattleLockChanged(object sender, TasEventArgs e) { tas.Say(TasClient.SayPlace.Battle, "", "game " + (tas.GetBattle().IsLocked ? "locked" : "unlocked"), true); }
void tas_MyStatusChangedToInGame(object sender, TasEventArgs e) { spring.StartGame(tas, Program.main.Config.HostingProcessPriority, null, null); }
void tas_LoginAccepted(object sender, TasEventArgs e) { for (var i = 0; i < config.JoinChannels.Length; ++i) tas.JoinChannel(config.JoinChannels[i]); }
void tas_LoginDenied(object sender, TasEventArgs e) { //MessageBox.Show(e.ServerParams[0], "Login failed", MessageBoxButtons.OK, MessageBoxIcon.Warning); Program.formMain.GetNewLogPass(); }
private void Tas_Changed(object sender, TasEventArgs e) { LoadCurrentData(); }
void tas_ConnectionLost(object sender, TasEventArgs e) { autoHost.Stop(); recon.Start(); }
void tas_BattleUserLeft(object sender, TasEventArgs e) { RemoveUser(e.ServerParams[0]); }
void TasClient_LoginAccepted(object sender, TasEventArgs e) { Reset(); }
void tas_BattleUserJoined(object sender, TasEventArgs e) { AddUser(e.ServerParams[0]); }
void tas_BattleOpened(object sender, TasEventArgs e) { tas.DisableUnits(UnitInfo.ToStringList(config.DisabledUnits)); }
void tas_LoginDenied(object sender, TasEventArgs e) { Program.formMain.GetNewLogPass(); }
void TasClient_ChannelTopicChanged(object sender, TasEventArgs e) { if (ChannelName == e.ServerParams[0]) { var channel = Program.TasClient.JoinedChannels[ChannelName]; DateTime? lastChange; Program.Conf.Topics.TryGetValue(channel.Name, out lastChange); var topicLine = new TopicLine(channel.Topic, channel.TopicSetBy, channel.TopicSetDate); topicBox.Reset(); topicBox.AddLine(topicLine); if (channel.Topic != null && lastChange != channel.TopicSetDate) IsTopicVisible = true; else IsTopicVisible = false; } }
private void Tas_BattleUserStatusChanged(object sender, TasEventArgs e) { UpdateStatusInfo(); }
void tas_LoginAccepted(object sender, TasEventArgs e) { foreach (string c in config.JoinChannels) tas.JoinChannel(c); }
private void Tas_BattleOpened(object sender, TasEventArgs e) { UpdateStatusInfo(); }
void TasClient_LoginAccepted(object sender, TasEventArgs e) { AddBattleControl(); foreach (var friendName in Program.FriendManager.Friends) CreatePrivateMessageControl(friendName); foreach (var channel in Program.AutoJoinManager.Channels) Program.TasClient.JoinChannel(channel, Program.AutoJoinManager.GetPassword(channel)); var lang = CultureInfo.CurrentCulture.TwoLetterISOLanguageName; if (!string.IsNullOrEmpty(lang)) Program.TasClient.JoinChannel(lang); }