Ejemplo n.º 1
0
        public MainForm()
        {
            CommonFunctions.Initialize();

            InitializeComponent();

#if RELEASE
            if (!String.IsNullOrEmpty(CommonFunctions.ObjApplicationSettings.LogoFileName.Trim()))
            {
                this.BackgroundImage       = Image.FromFile(AppDomain.CurrentDomain.BaseDirectory + "\\Images\\" + CommonFunctions.ObjApplicationSettings.LogoFileName);
                this.BackgroundImageLayout = ImageLayout.Center;
            }
#endif
            this.Text = CommonFunctions.ObjApplicationSettings.MainFormTitleText;

            toolStripOrderMasterPath.Text = "";
            CommonFunctions.ToolStripProgressBarMainForm       = this.toolStripProgressBar;
            CommonFunctions.ToolStripProgressBarMainFormStatus = this.toolStripProgress;
            this.toolStripProgress.Text = "";

            MasterSheetSelected = false;

            LoadProductLines();

            fileMenu.Visible    = true;
            sellerMenu.Visible  = true;
            vendorMenu.Visible  = true;
            productMenu.Visible = false;
            reportsMenu.Visible = true;

            addModifySellerToolStripMenuItem.Visible = false;
            discountGroupToolStripMenuItem.Visible   = false;

            priceGroupsToolStripMenuItem.Visible   = false;
            addModifyItemToolStripMenuItem.Visible = false;

            addModifyVendorToolStripMenuItem.Visible = false;

            vendorHistoryToolStripMenuItem.Visible = false;
            productStockToolStripMenuItem.Visible  = false;
        }