Ejemplo n.º 1
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.º 2
0
        private void ProfileBtn_Click(object sender, EventArgs e)
        {
            var profile = new ProfileFrm(Program.UserInfo.username);

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

            profile.ShowDialog();
        }