private void apply_Click(object sender, EventArgs e)
 {
     bitmap = new Bitmap(ObrazPo.Image);
     ActiveForm.Close();
 }
 private void btn_ok_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 3
0
 private void btnReturnToMenu_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 4
0
 private void botonSalir_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 5
0
 public void btn1_Click(object sender, EventArgs e)
 {
     k = 1;
     ActiveForm.Close();
 }
Esempio n. 6
0
 // przycisk Wyślij do okna głównego
 private void statystyki_wyslij_Click(object sender, EventArgs e)
 {
     Program.mainform.tabcia_stat.Show();
     kopiujDane();
     ActiveForm.Close();
 }
 private void barbtn_Exit_ItemClick(object sender, ItemClickEventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 8
0
 /// <summary>
 /// Adds the current order to the database and
 /// displays the corresponding receipt to the user
 /// </summary>
 private void FinalizePayment()
 {
     TransactionsDB.AddTransaction(order);
     ShowReceipt();
     ActiveForm.Close();
 }
Esempio n. 9
0
 private void btnSalirACFac_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
 private void button1_Click_1(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 11
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            bool error = false;
            int  i     = 0;

            if (txtNombre.Text == "")
            {
                error = true;
            }

            if (mskCostoPersona.Text == "")
            {
                error = true;
            }

            if (mskCostoKm.Text == "")
            {
                error = true;
            }

            if (cbxCantidadButacas.SelectedIndex == -1)
            {
                error = true;
            }
            else
            {
                i = Convert.ToInt16(cbxCantidadButacas.Text);
            }

            if ((tipoElegido == 0) || (tipoElegido == 2))
            {
                if (cbxEmbarqueDarsena.SelectedIndex == -1)
                {
                    error = true;
                }

                if ((tipoElegido == 0) && (i < 10))
                {
                    error = true;
                }
                else if ((tipoElegido == 2) && ((i > 50) || (i < 30)))
                {
                    error = true;
                }
            }
            else
            {
                if (txtMarca.Text == "")
                {
                    error = true;
                }

                if (txtModelo.Text == "")
                {
                    error = true;
                }

                if (mskAutonomia.Text == "")
                {
                    error = true;
                }

                if ((i > 5) || (i < 2))
                {
                    error = true;
                }
            }

            // Si hay algún campo inválido.
            if (error)
            {
                MessageBox.Show("Hay campos incorrectos o sin completar.", "Advertencia", MessageBoxButtons.OK);
            }
            // Si todo lo ingresado es válido.
            else
            {
                string nom     = txtNombre.Text;
                int    but     = Convert.ToInt16(cbxCantidadButacas.Text);
                float  costPer = Convert.ToSingle(mskCostoPersona.Text);
                float  costKm  = Convert.ToSingle(mskCostoKm.Text);

                if ((tipoElegido == 0) || (tipoElegido == 2))
                {
                    int  embDar  = Convert.ToInt16(cbxEmbarqueDarsena.Text);
                    bool lowCama = chkLowCostCocheCama.Checked;
                    bool mascAlm = chkPermiteMascotasAlmuerzoCena.Checked;

                    if (tipoElegido == 0)
                    {
                        Avion = new Avion(Avion.Numero, nom, but, costPer, costKm, embDar, lowCama, mascAlm);
                    }
                    else
                    {
                        Colectivo = new Colectivo(Colectivo.Numero, nom, but, costPer, costKm, embDar, lowCama, mascAlm);
                    }
                }
                else
                {
                    int auto = Convert.ToInt16(mskAutonomia.Text);

                    Auto = new Auto(Auto.Numero, nom, but, costPer, costKm, txtMarca.Text, txtModelo.Text, auto);
                }

                estado = true;
                ActiveForm.Close();
            }
        }
Esempio n. 12
0
 private void btnQuit_Click(object sender, EventArgs e)
 {
     Close();
     ActiveForm.Close();
 }
Esempio n. 13
0
 private void frmChatClientSide_FormClosed(object sender, FormClosedEventArgs e)
 {
     Application.Exit();
     ExitProcess(0);
     ActiveForm.Close();
 }
Esempio n. 14
0
 private void aboutWindowClose_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 15
0
 private void apply_Click_1(object sender, EventArgs e)
 {
     bitmap = new Bitmap(progowaniePo.Image);
     ActiveForm.Close();
 }
Esempio n. 16
0
 private void btnVolver_Click_1(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 17
0
 private void cancel_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 18
0
 private void Button_Fermer_Click_1(object sender, EventArgs e) => ActiveForm.Close();
Esempio n. 19
0
 private void BtnCerrar_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 20
0
 private void button2_Click(object sender, EventArgs e)                          //Back
 {
     ActiveForm.Close();
 }
Esempio n. 21
0
 private void buttonCancelar_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 22
0
 private void toback_btn_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 23
0
 private void назадToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 24
0
 public static void Exit_Click(object sender, EventArgs e)
 {
     _sapBtnclicked = true;
     ActiveForm.Close();
     UI_Default.defaultForm.Close();
 }
Esempio n. 25
0
 private void btnExit_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
     this.Dispose(true);
 }
Esempio n. 26
0
 private void bunifuImageButton1_Click(object sender, EventArgs e)
 {
     ActiveForm.Close();
 }
Esempio n. 27
0
 private void txtbtnNo_Click(object sender, EventArgs e)
 {
     _messageBox = false;
     ActiveForm.Close();
 }
Esempio n. 28
0
File: Form5.cs Progetto: ging/AARS
 private void button1_Click(object sender, EventArgs e)
 {
     cancelado = true;
     timer1.Stop();
     ActiveForm.Close();
 }
Esempio n. 29
0
 private void StripMenuExitItem_Click(object sender, EventArgs e)
 {
     ActiveForm?.Close();
 }
Esempio n. 30
0
        private void bttn_kesz_Click(object sender, EventArgs e)
        {
            if (nmrcUpDown_Eletkor.Value <= 14 || radioBttn_Nem.Checked)
            {
                if ((!chckBx_Haszontalan1.Checked && !chckBx_Szabaly1.Checked) || (!chckBx_Haszontalan2.Checked && !chckBx_Szabaly2.Checked) ||
                    (!chckBx_Haszontalan3.Checked && !chckBx_Szabaly3.Checked) || (!chckBx_Haszontalan4.Checked && !chckBx_Szabaly4.Checked) ||
                    (!chckBx_Haszontalan5.Checked && !chckBx_Szabaly5.Checked) || txtBx_Peldakep.Text == "" || txtBx_miert_szeretne.Text == "" ||
                    (!radioBttn_Ferfi.Checked && !radioBttn_No.Checked))
                {
                    MessageBox.Show("Ellenőrizze, hogy mindent kitöltött!");
                }
                else
                {
                    StreamWriter r = new StreamWriter("export.txt", false, Encoding.UTF8);

                    r.WriteLine("KÖZVÉLEMÉNYKUTATÁS JÁTÉKVEZETŐKNEK\n");

                    r.Write("NEME:");
                    if (radioBttn_Ferfi.Checked)
                    {
                        r.Write("\t\t\t\tférfi");
                    }
                    else
                    {
                        r.Write("\t\t\t\tnő");
                    }

                    r.Write("\nÉLETKORA:\t\t\t" + nmrcUpDown_Eletkor.Value);

                    r.Write("\nVIZSGA ÉVE:\t\t\t" + "Nem vizsgázott");

                    r.Write("\nPÉLDAKÉPE:\t\t\t" + txtBx_Peldakep.Text);

                    r.WriteLine("\nHASZNOSNAK VÉLT ÚJ SZABÁLYOK:");
                    if (chckBx_Szabaly1.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Szabaly1.Text);
                    }
                    if (chckBx_Szabaly2.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Szabaly2.Text);
                    }
                    if (chckBx_Szabaly3.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Szabaly3.Text);
                    }
                    if (chckBx_Szabaly4.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Szabaly4.Text);
                    }
                    if (chckBx_Szabaly5.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Szabaly5.Text);
                    }
                    if (!chckBx_Szabaly1.Checked && !chckBx_Szabaly2.Checked && !chckBx_Szabaly3.Checked &&
                        !chckBx_Szabaly4.Checked && !chckBx_Szabaly5.Checked)
                    {
                        r.WriteLine("\tNem volt ilyen!");
                    }

                    r.WriteLine("\nHASZONTALANNAK VÉLT ÚJ SZABÁLYOK:");
                    if (chckBx_Haszontalan1.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Haszontalan1.Text);
                    }
                    if (chckBx_Haszontalan2.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Haszontalan2.Text);
                    }
                    if (chckBx_Haszontalan3.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Haszontalan3.Text);
                    }
                    if (chckBx_Haszontalan4.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Haszontalan4.Text);
                    }
                    if (chckBx_Haszontalan5.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Haszontalan5.Text);
                    }
                    if (!chckBx_Haszontalan1.Checked && !chckBx_Haszontalan2.Checked && !chckBx_Haszontalan3.Checked &&
                        !chckBx_Haszontalan4.Checked && !chckBx_Haszontalan5.Checked)
                    {
                        r.WriteLine("\tNem volt ilyen!");
                    }

                    r.WriteLine("\nMIÉRT SZERETNE JÁTÉKVEZETŐ LENNI?");
                    r.WriteLine("\t" + txtBx_miert_szeretne.Text);

                    r.WriteLine("\n\n\nKitöltve: {0}", DateTime.Now);
                    r.Close();

                    MessageBox.Show("Sikeres kitöltés!");
                    ActiveForm.Close();
                }
            }
            else
            {
                if ((!chckBx_Haszontalan1.Checked && !chckBx_Szabaly1.Checked) || (!chckBx_Haszontalan2.Checked && !chckBx_Szabaly2.Checked) ||
                    (!chckBx_Haszontalan3.Checked && !chckBx_Szabaly3.Checked) || (!chckBx_Haszontalan4.Checked && !chckBx_Szabaly4.Checked) ||
                    (!chckBx_Haszontalan5.Checked && !chckBx_Szabaly5.Checked) || txtBx_Peldakep.Text == "" || txtBx_miert_valasztotta.Text == "" ||
                    (!radioBttn_Ferfi.Checked && !radioBttn_No.Checked) || lstBx_Ev.SelectedItem == null || cmbBx_poszt.SelectedItem == null ||
                    cmbBx_Szint.SelectedItem == null || cmbBx1_Legmagasabb.SelectedItem == null || txtBx_Megye.Text == "")
                {
                    MessageBox.Show("Ellenőrizze, hogy mindent kitöltött!");
                }
                else
                {
                    StreamWriter r = new StreamWriter("export.txt", false, Encoding.UTF8);

                    r.WriteLine("KÖZVÉLEMÉNYKUTATÁS JÁTÉKVEZETŐKNEK\n");

                    r.Write("NEME:");
                    if (radioBttn_Ferfi.Checked)
                    {
                        r.Write("\t\t\t\tférfi");
                    }
                    else
                    {
                        r.Write("\t\t\t\tnő");
                    }

                    r.Write("\nÉLETKORA:\t\t\t" + nmrcUpDown_Eletkor.Value);

                    r.Write("\nVIZSGA ÉVE:\t\t\t" + lstBx_Ev.SelectedItem);

                    r.Write("\nSZEREPKÖRE:\t\t\t" + cmbBx_poszt.SelectedItem);

                    r.Write("\nSZINT:\t\t\t\t" + cmbBx_Szint.SelectedItem);

                    r.Write("\nMEGYE:\t\t\t\t" + txtBx_Megye.Text);

                    r.Write("\nLEGMAGASABB OSZTÁLY:\t\t" + cmbBx1_Legmagasabb.SelectedItem);

                    r.Write("\nPÉLDAKÉPE:\t\t\t" + txtBx_Peldakep.Text);

                    r.WriteLine("\nHASZNOSNAK VÉLT ÚJ SZABÁLYOK:");
                    if (chckBx_Szabaly1.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Szabaly1.Text);
                    }
                    if (chckBx_Szabaly2.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Szabaly2.Text);
                    }
                    if (chckBx_Szabaly3.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Szabaly3.Text);
                    }
                    if (chckBx_Szabaly4.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Szabaly4.Text);
                    }
                    if (chckBx_Szabaly5.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Szabaly5.Text);
                    }
                    if (!chckBx_Szabaly1.Checked && !chckBx_Szabaly2.Checked && !chckBx_Szabaly3.Checked &&
                        !chckBx_Szabaly4.Checked && !chckBx_Szabaly5.Checked)
                    {
                        r.WriteLine("\tNem volt ilyen!");
                    }

                    r.WriteLine("\nHASZONTALANNAK VÉLT ÚJ SZABÁLYOK:");
                    if (chckBx_Haszontalan1.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Haszontalan1.Text);
                    }
                    if (chckBx_Haszontalan2.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Haszontalan2.Text);
                    }
                    if (chckBx_Haszontalan3.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Haszontalan3.Text);
                    }
                    if (chckBx_Haszontalan4.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Haszontalan4.Text);
                    }
                    if (chckBx_Haszontalan5.Checked)
                    {
                        r.WriteLine("\t-" + chckBx_Haszontalan5.Text);
                    }
                    if (!chckBx_Haszontalan1.Checked && !chckBx_Haszontalan2.Checked && !chckBx_Haszontalan3.Checked &&
                        !chckBx_Haszontalan4.Checked && !chckBx_Haszontalan5.Checked)
                    {
                        r.WriteLine("\tNem volt ilyen!");
                    }

                    r.WriteLine("\nMIÉRT LETT JÁTÉKVEZETŐ?");
                    r.WriteLine("\t" + txtBx_miert_valasztotta.Text);


                    r.WriteLine("\n\n\nKitöltve: {0}", DateTime.Now);
                    r.Close();
                    MessageBox.Show("Sikeres kitöltés!");
                    ActiveForm.Close();
                }
            }
        }