Esempio n. 1
0
        private void MeneItem_MouseUp(object sender, MouseEventArgs e)
        {
            RoundPanel pnl = sender as RoundPanel;

            pnl.Margin -= new Padding(menu_item_click_dx);
            pnl.Size   += new Size(menu_item_click_dx * 2, menu_item_click_dx * 2);
        }
Esempio n. 2
0
        private void MenuItem_MouseLeave(object sender, EventArgs e)
        {
            RoundPanel pnl = sender as RoundPanel;

            pnl.Size   -= new Size(menu_item_enter_dx * 2, menu_item_enter_dx * 2);
            pnl.Margin += new Padding(menu_item_enter_dx);
            pnl.Color   = Color.FromArgb(0, 122, 255);
        }
Esempio n. 3
0
        private void MenuItem_MouseEnter(object sender, EventArgs e)
        {
            RoundPanel pnl = sender as RoundPanel;

            pnl.Margin -= new Padding(menu_item_enter_dx);
            pnl.Size   += new Size(menu_item_enter_dx * 2, menu_item_enter_dx * 2);
            pnl.Color   = Color.Orange;
        }