Esempio n. 1
0
        private void MainForm_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F7)
            {
                printAccounting();
            }
            else if (e.KeyCode == Keys.Delete)
            {
                Eraser er = new Eraser();
                er.FormClosing += new FormClosingEventHandler(this.mainform_FormClosingEvent);
                if (er.start <Shift>(table_main))
                {
                    FillTable(tablemode);
                    mv.RefreshAll();
                }
            }
            else if (e.KeyData == (Keys.Control | Keys.Alt | Keys.D0))
            {
                try {
                    devtools.Show();
                    devtools.BringToFront();
                } catch {
                    devtools = new DevTools(this);
                    devtools.Show();
                    devtools.BringToFront();
                }
            }

            else if (e.KeyCode == Keys.F3)
            {
                AddShift addshiift = new AddShift();
                addshiift.FormClosing    += new FormClosingEventHandler(this.mainform_FormClosingEvent);
                addshiift.FormBorderStyle = FormBorderStyle.FixedDialog;
                addshiift.ShowDialog();
            }
            else if (e.KeyCode == Keys.F12)
            {
                Statistics statistics = new Statistics();
                statistics.FormBorderStyle = FormBorderStyle.FixedDialog;
                statistics.ShowDialog();
            }
        }
Esempio n. 2
0
        private void entwicklerToolsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var message = "Wirklich zu den Entwickler-Tools wechseln? Datenverlust möglich!";
            var title   = "Warnung";
            var result  = MessageBox.Show(
                message,
                title,
                MessageBoxButtons.YesNo,
                MessageBoxIcon.Question);

            switch (result)
            {
            case DialogResult.Yes:
                devtools = new DevTools(this);
                devtools.Show();
                break;

            case DialogResult.No:
                break;

            default:
                break;
            }
        }
Esempio n. 3
0
        //ListManager listmanager = new ListManager();

        public MainForm(Login_Form login)
        {
            InitializeComponent();
            this.login = login;
            devtools   = new DevTools(this);
        }