Exemplo n.º 1
0
        public virtual void FillLeftPanel()
        {
            dateAndTime = new DateAndTimeHeaderButton(this);
            user        = new UserHeaderButton(this, GetCurrentSysUser.Instance.UserName);
            this.leftPanel.Controls.Add(dateAndTime);
            HeaderSeperator seperator = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator);
            if (EnvParent.environment == Connections.Enums.Definitions.EnvironmentNames.Reporting || EnvParent.environment == Connections.Enums.Definitions.EnvironmentNames.SalesManagement | EnvParent.environment == Connections.Enums.Definitions.EnvironmentNames.Sales | EnvParent.environment == Connections.Enums.Definitions.EnvironmentNames.BasicInformation | EnvParent.environment == Connections.Enums.Definitions.EnvironmentNames.Treasury | EnvParent.environment == Connections.Enums.Definitions.EnvironmentNames.KalaGostaran | EnvParent.environment == Connections.Enums.Definitions.EnvironmentNames.Rahyab | EnvParent.environment == Connections.Enums.Definitions.EnvironmentNames.EMS)
            {
                HeaderSeperator seperator3 = new HeaderSeperator(this.leftPanel);
                this.leftPanel.Controls.Add(seperator3);
            }
            HeaderSeperator seperator1 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator1);
            this.leftPanel.Controls.Add(user);
            HeaderSeperator seperator2 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator2);
            HeaderSeperator seperator4 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator4);
            HeaderSeperator seperator5 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator5);
        }
Exemplo n.º 2
0
        public override void FillLeftPanel()
        {
            dateAndTime = new DateAndTimeHeaderButton(this);
            user        = new UserHeaderButton(this, GetCurrentSysUser.Instance.UserName);
            //accPath = new AccountingPath(this, Connections.ConnectionInfo.CurrentMasirName);
            this.leftPanel.Controls.Add(dateAndTime);
            HeaderSeperator seperator = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator);
            HeaderSeperator seperator4 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator4);
            HeaderSeperator seperator1 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator1);
            this.leftPanel.Controls.Add(user);
            HeaderSeperator seperator2 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator2);
            HeaderSeperator seperator5 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator5);
            HeaderSeperator seperator6 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator6);
        }
Exemplo n.º 3
0
        public HubHeader(Form parent_) : base(parent_)
        {
            this.Font   = Atiran.UI.WindowsForms.FontManager.GetFont("IRANSans", 15, FontStyle.Bold);
            this.Height = 46;

            Atiran.UI.WindowsForms.GetHubForm.GetCurrent = this.parent;
            CloseHeaderButton    close = new CloseHeaderButton(this);
            MaximizeHeaderButton max   = new MaximizeHeaderButton(this);
            MinimizeHeaderButton min   = new MinimizeHeaderButton(this);

            this.BackColor = System.Drawing.Color.FromArgb(120, 144, 156);
            this.rightPanel.Controls.Add(close);
            this.rightPanel.Controls.Add(max);
            this.rightPanel.Controls.Add(min);
            DateAndTimeHeaderButton dateTimeHeaderButton = new DateAndTimeHeaderButton(this);
            UserHeaderButton        user      = new UserHeaderButton(this, GetCurrentSysUser.Instance.UserName);
            ActivatedForms          activated = new ActivatedForms(this, Connections.AtiranAccModel.ConnectionInfo.ActiveForms);

            this.leftPanel.Controls.Add(dateTimeHeaderButton);
            HeaderSeperator seperator = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator);

            HeaderSeperator seperator1 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator1);
            HeaderSeperator seperator3 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator3);
            this.leftPanel.Controls.Add(user);
            HeaderSeperator seperator2 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator2);
            HeaderSeperator seperator5 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator5);
            this.leftPanel.Controls.Add(activated);
            HeaderSeperator seperator6 = new HeaderSeperator(this.leftPanel);

            this.leftPanel.Controls.Add(seperator6);
            parent_.Controls.Add(this);
            this.BringToFront();
        }