Exemplo n.º 1
0
        private void btnDocuments_Click(object sender, EventArgs e)
        {
            SetStyleElemens.viewClickButton(sender, pnlNav);

            FormDocuments fornDoc = new FormDocuments();

            SetStyleElemens.CreateForm(fornDoc, pnlFormLoader, lblTitle, "Documents");
        }
Exemplo n.º 2
0
        private void btnDocuments_Click(object sender, EventArgs e)
        {
            SetStyleElemens.viewClickButton(sender, pnlNav);

            lblTitle.Text = "Documents";
            this.pnlFormLoader.Controls.Clear();
            FormDocuments formDoc = new FormDocuments()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            formDoc.FormBorderStyle = FormBorderStyle.None;
            this.pnlFormLoader.Controls.Add(formDoc);
            formDoc.Show();
        }