示例#1
0
        private void добавитьБлокиToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Add_Blocks add_ = new Add_Blocks();

            add_.set    = this.dic;
            add_.peregr = this.but_peregruzka;
            add_.Show();
        }
示例#2
0
        public Add_Blocks CreateForm()
        {
            // Проверяем существование формы
            foreach (Form frm in Application.OpenForms)
            {
                if (frm is Add_Blocks)
                {
                    frm.Activate();
                    return(frm as Add_Blocks);
                }
            }
            // Создаем новую форму

            Add_Blocks add_ = new Add_Blocks();

            add_.blocks_T = myDBs["[Блоки]"].table;
            add_.zamech_T = myDBs["[Замечания по БД]"].table;
            add_.peregr   = this.but_peregruzka;
            add_.Show();
            return(add_);
        }