示例#1
0
        private void конструкторЗапросовToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Constructor constructor = new Constructor();

            if (constructor.ShowDialog() == DialogResult.OK)
            {
                //constructor.result;
                //constructor.cmd;


                btnImport.Enabled   = true;
                btnNoImport.Enabled = true;

                if (changed)
                {
                    UserCheck check = new UserCheck();
                    var       res   = check.ShowDialog();
                    if (res == DialogResult.OK)
                    {
                        Save();
                    }
                    else if (res == DialogResult.Abort)
                    {
                        return;
                    }
                }
                changed = false;
                idsToSave.Clear();
                idsToDelete.Clear();
                columnsToSave.Clear();
                CurRequest = Table.Songs;
                LoadTable();
                settingsButton.Enabled = true;
            }
        }
示例#2
0
        private void вывестиСписокИсполнителейToolStripMenuItem_Click(object sender, EventArgs e)
        {
            btnImport.Enabled   = false;
            btnNoImport.Enabled = false;
            if (CurRequest == Table.Authors)
            {
                return;
            }
            if (changed)
            {
                UserCheck check = new UserCheck();
                var       res   = check.ShowDialog();
                if (res == DialogResult.OK)
                {
                    Save();
                }
                else if (res == DialogResult.Abort)
                {
                    return;
                }
            }
            changed = false;
            idsToSave.Clear();
            idsToDelete.Clear();

            columnsToSave.Clear();
            CurRequest = Table.Authors;
            LoadTable();
            settingsButton.Enabled = false;
        }