Exemple #1
0
        private void 進貨MenuItem_Click(object sender, EventArgs e)
        {
            bool modified = MyFunction.GetThenResetGlobalFlag(GlobalFlag.basicDataModified);

            if (modified)
            {
                CloseOpenedMenu("Voucher");
            }
            PopupOrRun("Voucher", typeof(Voucher));
        }
Exemple #2
0
        private void 費用MenuItem_Click(object sender, EventArgs e)
        {
            bool modified = MyFunction.GetThenResetGlobalFlag(GlobalFlag.employeeModified);

            if (modified)
            {
                CloseOpenedMenu("Expense");
            }
            if (!PopupMenu("Expense"))
            {
                Run("Expense", new Expense(false, false));
            }
        }