Exemplo n.º 1
0
 //copy constructor
 public StoreSales(Event _eventRef, ModeSelection _parentRef)
 {
     eventRef  = _eventRef;
     parentRef = _parentRef;
     InitializeComponent();
     PopulateListBox();
 }
Exemplo n.º 2
0
        private void LoginSubmitButton_Click(object sender, EventArgs e)
        {
            DBConnect obj      = new DBConnect();
            string    username = usernameText.Text;
            string    password = passwordText.Text;

            if (username != "" && password != "")
            {
                string login = "******" + username + "', '" + password + "'";
                obj.Insert("Account", "Username, Password", login);
            }
            if (true /*server confirms loggin details */)
            {
                this.Hide();
                ModeSelection modeForm = new ModeSelection();
                modeForm.ShowDialog();
                this.Close();
            }
        }
 //copy constructor
 public SalesUpdateConfirmation(Event _event, ModeSelection _parentRef)
 {
     eventRef  = _event;
     parentRef = _parentRef;
     InitializeComponent();
 }
 public SalesCompleteMessage(Event _eventRef, ModeSelection _parentRef)
 {
     eventRef = _eventRef;
     parentRef = _parentRef;
     InitializeComponent();
 }