Пример #1
0
        private void toolStripMenuItem_DataGridViewRowModify_Click(object sender, EventArgs e)
        {
            Form_WPSImageUpdate myForm = new Form_WPSImageUpdate();

            myForm.myClass_WPSImage = new Class_WPSImage((int)this.dataGridView_WPSImage.CurrentRow.Cells["WPSImageID"].Value);
            myForm.bool_Add         = false;
            if (myForm.ShowDialog() == DialogResult.OK)
            {
                this.RefreshData(false);
            }
        }
Пример #2
0
        private void WPSImageAdd()
        {
            Form_WPSImageUpdate myForm = new Form_WPSImageUpdate();

            myForm.myClass_WPSImage       = new Class_WPSImage();
            myForm.myClass_WPSImage.WPSID = this.myEventArgs_WPS.str_WPSID;
            myForm.bool_Add = true;
            if (myForm.ShowDialog() == DialogResult.OK)
            {
                this.RefreshData(true);
            }
        }