void tas_ConnectionLost(object sender, TasEventArgs e) {
     Stop();
 }
 void TasClient_ConnectionLost(object sender, TasEventArgs e)
 {
     Reset();
 }
Beispiel #3
0
 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);
		}
Beispiel #5
0
 // im connected, let's login
 void tas_Connected(object sender, TasEventArgs e)
 {
     tas.Login(config.AccountName, config.AccountPassword, MainConfig.SpringieVersion);
 }
 void TasClient_ConnectionLost(object sender, TasEventArgs e)
 {
     Reset();
 }
Beispiel #7
0
 void tas_BattleLockChanged(object sender, TasEventArgs e)
 {
     SayBattle("game " + (tas.GetBattle().IsLocked ? "locked" : "unlocked"));
 }
Beispiel #8
0
 void tas_MyStatusChangedToInGame(object sender, TasEventArgs e)
 {
     spring.StartGame(tas.GetBattle());
 }
Beispiel #9
0
 void tas_ConnectionLost(object sender, TasEventArgs e)
 {
     recon.Start();
 }
Beispiel #10
0
 void tas_LoginDenied(object sender, TasEventArgs e)
 {
     recon.Start();
 }
Beispiel #11
0
 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);
 }
Beispiel #13
0
 void TasOnBattleUserStatusChanged(object sender, TasEventArgs tasEventArgs)
 {
     PlayerCountDecreased();
 }
 void TasClient_ConnectionLost(object sender, TasEventArgs e)
 {
     toolTabs.DisposeAllTabs();
     AddBattleControl();
 }
Beispiel #15
0
 void tas_BattleLockChanged(object sender, TasEventArgs e)
 {
     tas.Say(TasClient.SayPlace.Battle, "", "game " + (tas.GetBattle().IsLocked ? "locked" : "unlocked"), true);
 }
Beispiel #16
0
 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]);
		}
Beispiel #18
0
 void tas_LoginDenied(object sender, TasEventArgs e)
 {
     //MessageBox.Show(e.ServerParams[0], "Login failed", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     Program.formMain.GetNewLogPass();
 }
Beispiel #19
0
 private void Tas_Changed(object sender, TasEventArgs e)
 {
     LoadCurrentData();
 }
Beispiel #20
0
 void tas_ConnectionLost(object sender, TasEventArgs e)
 {
     autoHost.Stop();
     recon.Start();
 }
Beispiel #21
0
 void tas_BattleUserLeft(object sender, TasEventArgs e)
 {
     RemoveUser(e.ServerParams[0]);
 }
 void TasClient_LoginAccepted(object sender, TasEventArgs e)
 {
     Reset();
 }
Beispiel #23
0
 void tas_BattleUserJoined(object sender, TasEventArgs e)
 {
     AddUser(e.ServerParams[0]);
 }
Beispiel #24
0
 void tas_BattleOpened(object sender, TasEventArgs e)
 {
     tas.DisableUnits(UnitInfo.ToStringList(config.DisabledUnits));
 }
Beispiel #25
0
 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;
     }
 }
Beispiel #27
0
 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);
 }
Beispiel #29
0
 private void Tas_BattleOpened(object sender, TasEventArgs e)
 {
     UpdateStatusInfo();
 }
 void TasClient_LoginAccepted(object sender, TasEventArgs e)
 {
     Reset();
 }
Beispiel #31
0
 void TasClient_ConnectionLost(object sender, TasEventArgs e)
 {
     toolTabs.DisposeAllTabs();
     AddBattleControl();
 }
 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);
 }
Beispiel #33
0
 void tas_ConnectionLost(object sender, TasEventArgs e)
 {
     Stop();
 }