private Control CreateControlForChildObject(Item item)
        {
            OneDriveTile tile = new OneDriveTile(this.oneDriveClient);

            tile.SourceItem   = item;
            tile.Click       += ChildObject_Click;
            tile.DoubleClick += ChildObject_DoubleClick;
            tile.Name         = item.Id;
            return(tile);
        }
        void ChildObject_Click(object sender, EventArgs e)
        {
            if (null != _selectedTile)
            {
                _selectedTile.Selected = false;
            }

            var item = ((OneDriveTile)sender).SourceItem;

            LoadProperties(item);
            _selectedTile          = (OneDriveTile)sender;
            _selectedTile.Selected = true;
        }
 void ChildObject_Click(object sender, EventArgs e)
 {
     if (null != _selectedTile)
     {
         _selectedTile.Selected = false;
     }
     
     var item = ((OneDriveTile)sender).SourceItem;
     LoadProperties(item);
     _selectedTile = (OneDriveTile)sender;
     _selectedTile.Selected = true;
 }
 private Control CreateControlForChildObject(Item item)
 {
     OneDriveTile tile = new OneDriveTile(this.oneDriveClient);
     tile.SourceItem = item;
     tile.Click += ChildObject_Click;
     tile.DoubleClick += ChildObject_DoubleClick;
     tile.Name = item.Id;
     return tile;
 }