Пример #1
0
        private void navBarItemOfferStorage_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            try
            {
                restForeColorOfNavBarItem();
                NavBarItem navBarItem = (NavBarItem)sender;
                navBarItem.Appearance.ForeColor = Color.Blue;
                if (!xtraTabControlSalesContent.Visible)
                {
                    xtraTabControlSalesContent.Visible = true;
                }

                XtraTabPage xtraTabPage = getTabPage(xtraTabControlSalesContent, "تسجيل كميات العروض");
                if (xtraTabPage == null)
                {
                    xtraTabControlSalesContent.TabPages.Add("تسجيل كميات العروض");
                    xtraTabPage = getTabPage(xtraTabControlSalesContent, "تسجيل كميات العروض");
                }

                xtraTabPage.Controls.Clear();
                xtraTabControlSalesContent.SelectedTabPage = xtraTabPage;

                OfferStorage objForm = new OfferStorage(this);

                objForm.TopLevel = false;
                xtraTabPage.Controls.Add(objForm);
                objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                objForm.Dock            = DockStyle.Fill;
                //objForm.DisplayAtaqm();
                objForm.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }