Esempio n. 1
0
        private void cbAddCustomer_Click(Object eventSender, EventArgs eventArgs)
        {
            frmCustAdd custAdd = frmCustAdd.CreateInstance();

            custAdd.ShowDialog();
            if (custAdd.SavedCustomer)
            {
                // Saves the current customer ID and updates its info on the sales screen
                m_CurrentCustomer = (custAdd.SavedCustomerID) ? -1 : 0;
                LoadCustomerInfo(m_CurrentCustomer);
            }
        }
Esempio n. 2
0
        public static frmCustAdd CreateInstance()
        {
            frmCustAdd theInstance = new frmCustAdd();

            return(theInstance);
        }