private void btncurrentFreelance_Click(object sender, EventArgs e) { if (Globals.CurrentFreelance != null) { ContractInfo opencontractInfo = new ContractInfo(0, 4); opencontractInfo.Show(); } else { MessageBox.Show("You don't currently have a freelance contract.", "No Current Freelance Contract", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btncurrentContract_Click(object sender, EventArgs e) { if (Globals.CurrentContract != null) { //open contract info showing current contract ContractInfo opencontractInfo = new ContractInfo(0, 3); opencontractInfo.Show(); } else { MessageBox.Show("You don't currently have a contract.", "No Current Contract", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void Contracts_Click(object sender, EventArgs e) { int ContractTypeNumber = 0; if (radwhiteHat.Checked == true) { ContractTypeNumber = 0; } else if (radblackHat.Checked == true) { ContractTypeNumber = 1; } //get position by searching for sender in list ContractInfo opencontractInfo = new ContractInfo(contractPictureList.IndexOf((PictureBox)sender), ContractTypeNumber); opencontractInfo.Show(); }
private void Freelance_Click(object sender, EventArgs e) { ContractInfo opencontractInfo = new ContractInfo(freelanceLabelList.IndexOf((Label)sender), 2); opencontractInfo.Show(); }
private void btnContract_Click(object sender, EventArgs e) { ContractInfo opencontractInfo = new ContractInfo(0, 5); opencontractInfo.Show(); }