예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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();
        }
예제 #4
0
        private void Freelance_Click(object sender, EventArgs e)
        {
            ContractInfo opencontractInfo = new ContractInfo(freelanceLabelList.IndexOf((Label)sender), 2);

            opencontractInfo.Show();
        }
예제 #5
0
        private void btnContract_Click(object sender, EventArgs e)
        {
            ContractInfo opencontractInfo = new ContractInfo(0, 5);

            opencontractInfo.Show();
        }