Beispiel #1
0
 public void cerrar()
 {
     if (v == 1)
     {
         BtnMenu.PerformClick();
     }
 }
        private void BtnMenu_Click(object sender, RoutedEventArgs e)
        {
            Point p = BtnMenu.PointToScreen(
                new Point(BtnMenu.ActualWidth, BtnMenu.ActualHeight)
                );

            MyClockListView.ShowContextMenu(
                new HashSet <ClockVM>(Clocks.SelectedClocks),
                new System.Drawing.Point(
                    (int)Math.Round(p.X),
                    (int)Math.Round(p.Y)),
                System.Windows.Forms.ToolStripDropDownDirection.BelowLeft);
        }
Beispiel #3
0
        async void OnBtnMenuClick(object sender, EventArgs args)
        {
            BtnMenu.Opacity = 0;
            await BtnMenu.FadeTo(1, 200);

            if (BtnUers.IsVisible == true)
            {
                HideMenu();
            }
            else
            {
                ShowMenu();
            }
        }