FolderWidget/frmMain.cs
/// <summary>
/// hovering a button would show data on the items
/// </summary>
hovering a button would show data on the items
hovering a button would show data on the items
private void Btn_MouseHover(object sender, EventArgs e)
        {
            ((Button)sender).BackColor = btnHover;
            string paths = ((Button)sender).Tag.ToString();
            string[] parsedPaths = paths.Split(',');
            string title = string.Empty;
            if (parsedPaths.Count() > 1)
            {
                int amount = parsedPaths.Count();
                string amountStr = parsedPaths.Count().ToString();
                title = "[ " + amountStr + " Files ]";
                lblFileName.Text = title;
                return;
            }
            title = Path.GetFileNameWithoutExtension(paths);
            lblFileName.Text = title;
        }
private void Btn_MouseHover ( object sender , EventArgs e ) { ( ( Button ) sender ) . BackColor = btnHover ; string paths = ( ( Button ) sender ) . Tag . ToString ( ) ; string [ ] parsedPaths = paths . Split ( ' ' ) ; string title = string . Empty ; if ( parsedPaths . Count ( ) > 1 ) { int amount = parsedPaths . Count ( ) ; string amountStr = parsedPaths . Count ( ) . ToString ( ) ; title = " " + amountStr + " " ; lblFileName . Text = title ; return ; } title = Path . GetFileNameWithoutExtension ( paths ) ; lblFileName . Text = title ; }
hovering a button would show data on the items
hovering a button would show data on the items
sender
object
e
EventArgs