コード例 #1
0
        private void создатьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewSocialStatusForm form = new NewSocialStatusForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                UpdateGrid();
            }
        }
コード例 #2
0
        private void OpenSocialStatus()
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                Status status = dataGridView1.SelectedRows[0].DataBoundItem as Status;

                NewSocialStatusForm form = new NewSocialStatusForm(status);
                if (form.ShowDialog() == DialogResult.OK)
                {
                    UpdateGrid();
                }
            }
        }