//QIKY ASHT BUTONI SHKA KLIKOHET.. QAJ MA NALT U KON TJETER E KAM FSHI private void btnPlayM_Click(object sender, EventArgs e) { this.Hide(); SceneForm sceneForm = new SceneForm(Player1Name, Player2Name); //MessageBox.Show(Player1Name, Player2Name); DialogResult result = sceneForm.ShowDialog(); }
private void pictureBox3_Click_1(object sender, EventArgs e) { Player1Name = "Player 1"; Player2Name = "Player 2"; SceneForm sceneForm = new SceneForm(Player1Name, Player2Name); //MessageBox.Show(Player1Name, Player2Name); DialogResult result = sceneForm.ShowDialog(); }
//2Player PictureBox //private void PictureBox2_MouseLeave(object sender, EventArgs e) //{ // if (clicked == false) // { // pictureBox2.SizeMode = PictureBoxSizeMode.Zoom; // pictureBox2.Cursor = Cursors.Default; // } // else // { // pictureBox2.SizeMode = PictureBoxSizeMode.Zoom; // pictureBox2.Cursor = Cursors.Default; // } //} //1Player PictureBox //private void PictureBox1_MouseLeave(object sender, EventArgs e) //{ // if(clicked == false) // { // pictureBox1.SizeMode = PictureBoxSizeMode.Zoom; // pictureBox1.Cursor = Cursors.Default; // } // else // { // pictureBox2.SizeMode = PictureBoxSizeMode.Zoom; // pictureBox2.Cursor = Cursors.Default; // } //} //Play -PcitureBox private void PictureBox3_Click(object sender, EventArgs e) { SceneForm sceneForm = new SceneForm(Player1Name, Player2Name); if (sceneForm.ShowDialog() == DialogResult.OK) { sceneForm.AddOwnedForm(sceneForm); } }
private void btnPlay_Click(object sender, EventArgs e) { SceneForm sceneForm = new SceneForm(Player1Name, Player1Name); DialogResult result = sceneForm.ShowDialog(); //this.Close(); }