Ejemplo n.º 1
0
 private void ProfileBtn_Click(object sender, EventArgs e)
 {
     var profile = new ProfileFrm(Program.UserInfo.username);
     profile.ShowDialog();
 }
Ejemplo n.º 2
0
        private void ViewProfile(object sender, EventArgs e)
        {
            ListBox list = (UserListTabs.SelectedTab.Name == ChannelTab.Name ? ChannelList : UserList);
            if (list.SelectedItem == null)
                return;

            var profile = new ProfileFrm(list.SelectedItem is string ? list.SelectedItem.ToString():((UserData)list.SelectedItem).username);
            profile.ShowDialog();
        }
Ejemplo n.º 3
0
        private void ViewProfile(object sender, EventArgs e)
        {
            ListBox list = (UserListTabs.SelectedTab.Name == OnlineTab.Name ? UserList :(UserListTabs.SelectedTab.Name == TeamTab.Name ? TeamList: FriendList));
            if (list.SelectedItem == null)
                return;

            var profile = new ProfileFrm(list.SelectedItem.ToString());
            profile.ShowDialog();
        }
Ejemplo n.º 4
0
        public void ShowProfile(object sender, EventArgs e)
        {
            var player = (ListBox)sender;
            if (player.SelectedIndex == -1)
                return;

            string []parts = player.Text.Split(',');
            string name = parts[0];

            var profile = new ProfileFrm(name);
            profile.ShowDialog();
        }
Ejemplo n.º 5
0
 private void ProfileBtn_Click(object sender, EventArgs e)
 {
     var profile = new ProfileFrm();
     profile.ShowDialog();
 }