Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var isNumeric = int.TryParse(txtSearch.Text, out int n);

            if (isNumeric == true)
            {
                foreach (object o in cmdOp.Items)
                {
                    updateAll(o.ToString());
                }


                //NEEDS TO MARK THE DOOR AS COMPLETE
                SqlStatements sqlUpdate = new SqlStatements();

                frmLooseItems fli = new frmLooseItems(int.Parse(this.txtSearch.Text));

                fli.ShowDialog();



                sqlUpdate.CompleteDoor(Int32.Parse(txtSearch.Text), -1);
                RefreshDoorData();
            }
        }
Пример #2
0
        private void looseItemsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var isNumeric = int.TryParse(txtSearch.Text, out int n);

            if (isNumeric == true)
            {
                frmLooseItems fli = new frmLooseItems(int.Parse(this.txtSearch.Text));
                fli.ShowDialog();
            }
            else
            {
                MessageBox.Show("Cannot open loose items when a door number is not selected!", "Select door number", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            frmLooseItems fli = new frmLooseItems(int.Parse(this.txtSearch.Text));

            fli.ShowDialog();
        }