Example #1
0
        void SaveQuestion()
        {
            switch (MessageBox.Show("Would you like to save this till information?", "Save changes?", MessageBoxButtons.YesNoCancel))
            {
            case DialogResult.Yes:
                string[] sToAdd = { InputTextBox("RLINE_1").Text, InputTextBox("RLINE_2").Text, InputTextBox("RLINE_3").Text };
                sEngine.AddTill(InputTextBox("TILL_NUM").Text, InputTextBox("TILL_NAME").Text, sToAdd, InputTextBox("TILL_LOC").Text, InputTextBox("COLLECTION").Text, sShopCode);
                if (MessageBox.Show("Would you like to upload changes to the till now?", "Upload Now?", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    sEngine.CopyWaitingFilesToTills();
                }
                this.Close();
                break;

            case DialogResult.No:
                this.Close();
                break;

            case DialogResult.Cancel:
                break;
            }
        }