// DELEGATE PART :: BEGIN
 void AddClick(object sender, EventArgs e)
 {
     using (contract_rate_detail managePage = new contract_rate_detail())
     {
         managePage.Owner    = this;
         managePage.agent_id = agent_id;
         managePage.agent_contract_rate_id = "-1";
         managePage.Text = "ADD CONTRACT RATE DATA";
         this.Hide();
         managePage.ShowDialog();
         this.Show();
         this.Activate();
     }
 }
 void EditClick(object sender, EventArgs e)
 {
     using (contract_rate_detail managePage = new contract_rate_detail())
     {
         managePage.Owner    = this;
         managePage.agent_id = agent_id;
         managePage.agent_contract_rate_id = btn_dgv.DGV.SelectedRows[0].Cells[btn_dgv.DGV.Columns.Count - 1].Value.ToString();
         managePage.start_date.Text        = btn_dgv.DGV.SelectedRows[0].Cells["START_DATE"].Value.ToString();
         managePage.end_date.Text          = btn_dgv.DGV.SelectedRows[0].Cells["END_DATE"].Value.ToString();
         managePage.Text = "EDIT CONTRACT RATE DATA";
         this.Hide();
         managePage.ShowDialog();
         this.Show();
         this.Activate();
     }
 }