示例#1
0
        void EditClick(object sender, EventArgs e)
        {
            using (agent_manage managePage = new agent_manage())
            {
                managePage.Owner           = this;
                managePage.manage_btn.Text = "UPDATE";
                managePage.id   = Convert.ToInt32(btn_dgv.DGV.SelectedRows[0].Cells[btn_dgv.DGV.Columns.Count - 1].Value);
                managePage.Text = "EDIT AGENT DATA";

                managePage.ShowDialog();
            }
        }
示例#2
0
        // DELEGATE PART :: BEGIN
        void AddClick(object sender, EventArgs e)
        {
            using (agent_manage managePage = new agent_manage())
            {
                managePage.Owner           = this;
                managePage.id              = -1;
                managePage.manage_btn.Text = "ADD";
                managePage.Text            = "ADD AGENT DATA";

                managePage.ShowDialog();
            }
        }