Esempio n. 1
0
        private void Label_wyloguj_Click(object sender, EventArgs e)
        {
            for (int i = Application.OpenForms.Count - 1; i >= 0; i--)
            {
                if (Application.OpenForms[i].Name != "Okno_glowne")
                {
                    Application.OpenForms[i].Close();
                }
            }
            Logowanie.zalogowany = false;
            Logowanie log = new Logowanie(this);

            log.Show();
            this.ShowInTaskbar = false;
            Opacity            = 0;
        }
Esempio n. 2
0
        public Okno_glowne()
        {
            InitializeComponent();

            if (Properties.Settings.Default.Autostart = true && !System.IO.File.Exists(Sciezki.autostart))
            {
                Opcje.Utworz_skrot();
            }

            log             = new Logowanie(this);
            log.FormClosed += Log_FormClosed;
            Metody_lokalne.Foldery();

            Kultura.Kropka();
            dateTimePicker_od.Value = DateTime.Today.AddMonths(-1);
            label_wersja.Text       = "Wersja programu: " + Aktualizacja.POSIADANA.ToString();

            if (Screen.PrimaryScreen.WorkingArea.Width < 1230)
            {
                WindowState = FormWindowState.Maximized;
                MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
            }
        }