Пример #1
0
        private void piePanelMenu1_ButtonClicked(object sender, PieMenuButtonClickedArgs e)
        {
            switch (e.Name)
            {
                case BUTTON_DENSITY:
                    ShowPropertyTab(generalPropsDensity1);
                    break;

                default:
                    MessageBox.Show("Unknown Button: " + e.Name, "General Props - Menu Button Clicked", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    break;
            }
        }
Пример #2
0
        private void piePanelMenuTop1_ButtonClicked(object sender, PieMenuButtonClickedArgs e)
        {
            switch (e.Name)
            {
                case BUTTON_SIZE:
                    ShowPropertyTab(sizeProps1);
                    break;

                case BUTTON_VELOCITY:
                    ShowPropertyTab(velocityProps1);
                    break;

                default:
                    MessageBox.Show("Unknown Button: " + e.Name, "SolidBallProps Button Clicked", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    break;
            }
        }
Пример #3
0
 private void piePanelMenuTop1_ButtonClicked(object sender, PieMenuButtonClickedArgs e)
 {
     MessageBox.Show(e.Name + " clicked (" + e.Index.ToString() + ")", "PieMenuTester", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
Пример #4
0
 private void piePanelMenuTop1_ButtonClicked(object sender, PieMenuButtonClickedArgs e)
 {
     MessageBox.Show(e.Name + " clicked (" + e.Index.ToString() + ")", "PieMenuTester", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
Пример #5
0
        private void piePanelMenu1_ButtonClicked(object sender, PieMenuButtonClickedArgs e)
        {
            switch (e.Name)
            {
                case BUTTON_MAIN:
                    ShowPropertyTab(shipPropsMain1);
                    break;

                case BUTTON_TRACTOR:
                    ShowPropertyTab(shipPropsTractor1);
                    break;

                case BUTTON_GUN:
                    ShowPropertyTab(shipPropsGun1);
                    break;

                default:
                    MessageBox.Show("Unknown Button: " + e.Name, "Ship Props - Menu Button Clicked", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    break;
            }
        }