Esempio n. 1
0
        private void btnZapisz_Click(object sender, EventArgs e)
        {
            if (cbWyborTresci.SelectedIndex == -1)
            {
                MessageBox.Show("Wybierz rodzaj treści!");
            }
            else
            {
                string tresc = "";
                foreach (string item in RTBTrescSMS.Lines)
                {
                    tresc += item;
                }

                switch (cbWyborTresci.SelectedIndex)
                {
                case 0:
                    glowna.trescSmsNaprawiony = tresc;
                    break;

                case 1:
                    glowna.trescSmsNienaprawiony = tresc;
                    break;

                case 2:
                    glowna.trescSmsInny = tresc;
                    break;
                }
                glowna.nadpiszUstawienia();
                Close();
                glowna.Enabled = true;
                glowna.Focus();
            }
        }
Esempio n. 2
0
 private void btZapisz_Click(object sender, EventArgs e)
 {
     firma.Czynne  = tbCzynne.Text;
     firma.Email   = tbEmail.Text;
     firma.Miasto  = tbMiasto.Text;
     firma.Telefon = tbTelefon.Text;
     firma.Ulica   = tbUlica.Text;
     glowna.nadpiszFirme();
     Close();
     glowna.Enabled = true;
     glowna.Focus();
     glowna.generujRaport();
 }
        private void btZapisz_Click(object sender, EventArgs e)
        {
            if (RTBRegulamin.Lines.Count() > 0)
            {
                glowna.regulamin.Clear();
                for (int i = 0; i < RTBRegulamin.Lines.Count(); i++)
                {
                    glowna.regulamin.Add(RTBRegulamin.Lines[i].ToString());
                }
            }

            glowna.nadpiszRegulamin();
            Close();
            glowna.Enabled = true;
            glowna.Focus();
        }
 private void btZamknij_Click(object sender, EventArgs e)
 {
     Close();
     glowna.Enabled = true;
     glowna.Focus();
 }
 private void SekcjaRaportow_FormClosing(object sender, FormClosingEventArgs e)
 {
     glowna.Enabled = true;
     glowna.Focus();
 }