Example #1
0
        private UzivateleGridForm getUzivateleGridForm()
        {
            UzivateleGridForm form = new UzivateleGridForm();

            form.MdiParent   = this;
            form.WindowState = FormWindowState.Maximized;

            Thread thread = new Thread(new ThreadStart(form.RefreshData));

            thread.Start();

            flowLayoutPanel1.Visible = true;
            progressBar1.Visible     = true;

            while (thread.IsAlive)
            {
                Refresh();
            }

            thread.Join();

            flowLayoutPanel1.Visible = false;
            progressBar1.Visible     = false;

            return(form);
        }
Example #2
0
        public UzivatelDetail(int id, UzivateleGridForm UzivateleGridForm)
        {
            InitializeComponent();
            UzivatelTable   = new UzivatelTable();
            UpozorneniTable = new UpozorneniTable();

            this.UzivateleGridForum = UzivateleGridForm;

            InitData(id);
        }
Example #3
0
        private void seznamUzivateluToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UzivateleGridForm form = getUzivateleGridForm();

            form.Show();
        }