Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var aepost = new AddEditPost("add");

            aepost.ShowDialog();
            ini();
        }
Exemple #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            var aepost = new AddEditPost(int.Parse(dgPosts.SelectedRows[0].Cells["id"].Value.ToString()),
                                         dgPosts.SelectedRows[0].Cells["cName"].Value.ToString(),
                                         bool.Parse(dgPosts.SelectedRows[0].Cells["isActive"].Value.ToString()) ? 1 : 0,
                                         dgPosts.SelectedRows[0].Cells["Dative_case"].Value.ToString());

            aepost.ShowDialog();
            ini();
        }