Exemplo n.º 1
0
        private void OpenAvatarPicker(Control changeAvatar)
        {
            _avatarPicker = new AvatarPicker(_avatarImageList, _personSetting);
            _avatarPicker.Show(this);
            _avatarPicker.Activate();

            Point locationOfLink = PointToScreen(changeAvatar.Location);

            _avatarPicker.Location         = new Point(locationOfLink.X + changeAvatar.Width, locationOfLink.Y + changeAvatar.Height);
            _avatarPicker.OnAvatarClicked += AvatarPickerOnOnAvatarClicked;
        }
Exemplo n.º 2
0
        private void OpenAvatarPicker(Control changeAvatar)
        {
            _avatarPicker             = new AvatarPicker(_avatarImageList);
            _avatarPicker.Deactivate += (sender, args) =>
            {
                _avatarPicker.Close();
                _avatarPicker.Dispose();
            };
            _avatarPicker.Show(this);
            _avatarPicker.Activate();

            Point locationOfLink = PointToScreen(changeAvatar.Location);

            _avatarPicker.Location         = new Point(locationOfLink.X + changeAvatar.Width, locationOfLink.Y + changeAvatar.Height);
            _avatarPicker.OnAvatarClicked += AvatarPickerOnOnAvatarClicked;
        }
Exemplo n.º 3
0
        private void OpenAvatarPicker(Control changeAvatar)
        {
            _avatarPicker = new AvatarPicker(_avatarImageList);
            _avatarPicker.Deactivate += (sender, args) =>
            {
                _avatarPicker.Close();
                _avatarPicker.Dispose();
            };
            _avatarPicker.Show(this);
            _avatarPicker.Activate();

            Point locationOfLink = PointToScreen(changeAvatar.Location);
            _avatarPicker.Location = new Point(locationOfLink.X + changeAvatar.Width, locationOfLink.Y + changeAvatar.Height);
            _avatarPicker.OnAvatarClicked += AvatarPickerOnOnAvatarClicked;
        }
Exemplo n.º 4
0
        private void OpenAvatarPicker(Control changeAvatar)
        {
            _avatarPicker = new AvatarPicker(_avatarImageList, _personSetting);
            _avatarPicker.Show(this);
            _avatarPicker.Activate();

            Point locationOfLink = PointToScreen(changeAvatar.Location);
            _avatarPicker.Location = new Point(locationOfLink.X + changeAvatar.Width, locationOfLink.Y + changeAvatar.Height);
            _avatarPicker.OnAvatarClicked += AvatarPickerOnOnAvatarClicked;
        }