Ejemplo n.º 1
0
        private FormProfileOverview(ApplicationDataClass applicationData, ApplicationPlayerDetails currentPlayer)
        {
            _applicationData      = applicationData;
            _currentPlayerProfile = currentPlayer;

            InitializeComponent();
        }
Ejemplo n.º 2
0
        public FormProfileOverview(ApplicationDataClass applicationData)
        {
            _applicationData      = applicationData;
            _currentPlayerProfile = applicationData.PlayerDetails;

            InitializeComponent();
        }
Ejemplo n.º 3
0
        private async void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
            ulong friendsId = _currentPlayerProfile.Friends[dataGridView1.CurrentCell.RowIndex];
            ApplicationPlayerDetails friendDetails = new ApplicationPlayerDetails();

            if (!await _applicationData.GetUserByIdAsync(friendsId, friendDetails))
            {
                ApplicationConstants.MessageUserNotFound();
                return;
            }

            var friendsProfile = new FormProfileOverview(_applicationData, friendDetails);

            friendsProfile.Show();
        }