Ejemplo n.º 1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (txtTableName.Text == "")
            {
                MessageBox.Show("Please add a table name!", "Table Information", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            if (exist)
            {
                MessageBox.Show("Table name is existing!", "Channel Information", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            if (type == "Add")
            {
                AddSave();
                parentForm.ShowLUTableSetInformation();
            }
            else if (type == "Modify")
            {
                ModifySave();
                parentForm.ShowLUTableSetInformation();
            }

            this.Close();
        }