Esempio n. 1
0
 public DlgClanProfile(FrmMain mainForm) : base(mainForm)
 {
     this.components = null;
     this.ClanNameLookup = new Dictionary<string, ClanView>();
     this.PlayerNameLookup = new Dictionary<string, ClanView>();
     this.mCurrentClan = null;
     this.mViewList = new LinkedList<ClanView>();
     this.mSelectedParticipantView = null;
     this.RankContainerLookup = new Dictionary<string, TextContainer>();
     this.RankContainers = new BoundContainerList();
     this.mDescriptionModified = false;
     this.InitializeComponent();
 }
Esempio n. 2
0
 private void skinButtonPreviousProfile_Click(object sender, EventArgs e)
 {
     this.mCurrentClan = this.ViewList.Find(this.CurrentClan).Previous.Value;
     this.Construct();
 }
Esempio n. 3
0
 internal bool SetCurrentClanByPlayer(string playerName)
 {
     if (this.PlayerNameLookup.ContainsKey(playerName))
     {
         this.mCurrentClan = this.PlayerNameLookup[playerName];
         return true;
     }
     if (((Clan.Current != null) && (ClanMember.Current != null)) && (playerName == ClanMember.Current.Name))
     {
         this.mCurrentClan = new ClanView(Clan.Current, Clan.CurrentMembers, playerName, true);
         this.PlayerNameLookup.Add(playerName, this.CurrentClan);
         return true;
     }
     MappedObjectList<Clan> objects = DataAccess.GetObjects<Clan>("GetClanByMember2", new object[] { playerName });
     if (objects.Count > 0)
     {
         MappedObjectList<ClanMember> currentMembers;
         Clan clan = objects[0];
         if ((Clan.Current != null) && clan.Equals(Clan.Current))
         {
             currentMembers = Clan.CurrentMembers;
         }
         else
         {
             currentMembers = DataAccess.GetObjects<ClanMember>("GetClanMembers", new object[] { clan.ID });
         }
         this.mCurrentClan = new ClanView(clan, currentMembers, playerName, true);
         this.PlayerNameLookup.Add(playerName, this.CurrentClan);
         return true;
     }
     base.MainForm.ErrorMessage(Loc.Get("<LOC>Unable to locate clan for player '{0}'"), new object[] { playerName });
     if (this.ViewList.Count < 1)
     {
         base.Dispose();
     }
     return false;
 }
Esempio n. 4
0
 private void skinButtonNext_Click(object sender, EventArgs e)
 {
     this.mCurrentClan = this.ViewList.Find(this.CurrentClan).Next.Value;
     this.Construct();
 }