public JobForm(Delegates.BackToSearch back, DataGridViewRow row) { InitializeComponent(); this.Row = row; this.BackToSearch = back; this.SetAll(); this.lblMessagetoSignin.Visible = true; this.BackForm = "Search"; }
public JobForm(Delegates.BackToSearch back, DataGridViewRow row, string id) { InitializeComponent(); this.Row = row; this.BackToSearch = back; this.SetAll(); this.pnlApply.Visible = true; this.BackForm = "Search"; this.JobSeekerId = id; }
private void DgvJob_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { Delegates.BackToSearch back = this.BackHere; DataGridViewRow row = this.dgvJob.CurrentRow; if (this.CurrentUser == "Guest") { new JobForm(back, row).Visible = true; } else if (this.CurrentUser == "JobSeeker") { new JobForm(back, row, this.JobseekerId).Visible = true; } this.Visible = false; }