Ejemplo n.º 1
0
        private MaterialyGridForm getMaterialyGridForm()
        {
            MaterialyGridForm form = new MaterialyGridForm();

            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);
        }
Ejemplo n.º 2
0
        private void seznamMaterialuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MaterialyGridForm form = getMaterialyGridForm();

            form.Show();
        }