Example #1
0
        private void RefreshLabels(object sender, EventArgs e)
        {
            titleLabel.Text  = Phrases.GetPhrase("DASHBOARD");
            aboutButton.Name = Phrases.GetPhrase("ABOUT");
            exitButton.Name  = Phrases.GetPhrase("EXIT");
            backButton.Name  = Phrases.GetPhrase("BACK");
            step1Button.Name = Phrases.GetPhrase("STEP1");

            fullScreenButton.Name = Phrases.GetPhrase(holdFullScreenCode);
        }
Example #2
0
        private void SendMessageBox(string txt)
        {
            PopupMessageBox msgBox = new PopupMessageBox();

            //msgBox.UseButtons = "YN";
            msgBox.FColor    = Color.White;
            msgBox.BColor    = Color.Orange;
            msgBox.LabelText = Phrases.GetPhrase("PAGE2");
            if (msgBox.ShowDialog() == DialogResult.Yes)
            {
            }
            else
            {
            }
            msgBox.Dispose();
        }
Example #3
0
        private void ExitApplication()
        {
            PopupMessageBox msgBox = new PopupMessageBox();

            msgBox.UseButtons = "YN";
            msgBox.FColor     = Color.White;
            msgBox.BColor     = Color.Orange;
            msgBox.LabelText  = Phrases.GetPhrase("YNQUIT");
            if (msgBox.ShowDialog() == DialogResult.Yes)
            {
                Application.Exit();
            }
            else
            {
                SetRibbonPanel();
            }
            msgBox.Dispose();
        }
Example #4
0
        private void SetScreen()
        {
            if (showFullScreen)
            {
                showFullScreen        = false;
                fullScreenButton.Name = Phrases.GetPhrase("VIEWFULLSCREEN");
                holdFullScreenCode    = "VIEWfULLSCREEN";
            }
            else
            {
                showFullScreen        = true;
                fullScreenButton.Name = Phrases.GetPhrase("VIEWWINDOW");
                holdFullScreenCode    = "VIEWWINDOW";
            }

            Rectangle workingArea = Screen.GetWorkingArea(this);

            //Point pt = new Point(workingArea.Left, workingArea.Bottom -100);

            if (showFullScreen)
            {
                this.WindowState       = FormWindowState.Normal;
                FormBorderStyle        = FormBorderStyle.None;
                WindowState            = FormWindowState.Maximized;
                fullScreenButton.Image = Properties.Resources.SmallWindow;
                fullScreenButton.Refresh();
            }
            else
            {
                this.ShowIcon          = true;
                WindowState            = FormWindowState.Normal;
                FormBorderStyle        = FormBorderStyle.Sizable;
                this.Top               = 0;
                this.Left              = 0;
                this.Height            = workingArea.Height - 50;
                this.Width             = workingArea.Width;
                fullScreenButton.Image = Properties.Resources.SmallClosedWindow;
                fullScreenButton.Refresh();
            }

            SetRibbonPanel();
        }
Example #5
0
        private void ChangeLanguage()
        {
            switch (GlobalConfig.LANGUAGE)
            {
            case GlobalConfig.ENGLISH:
                GlobalConfig.LANGUAGE = GlobalConfig.CROATIAN;
                languageButton.Name   = Phrases.GetPhrase("CROATIAN");
                break;

            case GlobalConfig.CROATIAN:
                GlobalConfig.LANGUAGE = GlobalConfig.ENGLISH;
                languageButton.Name   = Phrases.GetPhrase("ENGLISH");
                break;

            default:
                break;
            }

            SetRibbonPanel();

            GlobalConfig.LanguageChangedFunction();
        }
Example #6
0
 public void Step1ButtonClicked(string str)
 {
     SendMessageBox(Phrases.GetPhrase("PAGE2"));
 }
Example #7
0
 public void RefreshLabels(object sender, EventArgs e)
 {
     label1.Text = String.Format("{0} {1}", Phrases.GetPhrase("PAGE2"), cnt);
     cnt++;
 }
Example #8
0
        private void BuildNavigationRibbonPanels()
        {
            //navigator panel
            aboutButton.BackColor             = Color.Transparent;
            aboutButton.BackgroundImage       = Properties.Resources.SmallI;
            aboutButton.BackgroundImageLayout = ImageLayout.Center;
            aboutButton.Dock = DockStyle.Fill;
            aboutButton.FlatAppearance.BorderColor        = Color.White;
            aboutButton.FlatAppearance.BorderSize         = 0;
            aboutButton.FlatAppearance.MouseOverBackColor = Color.SlateGray;
            aboutButton.FlatStyle = FlatStyle.Flat;
            aboutButton.Margin    = new Padding(0);
            // aboutButton.Name = Phrases.GetPhrase("ABOUT");
            aboutButton.UseVisualStyleBackColor = false;

            exitButton.BackColor             = Color.Transparent;
            exitButton.BackgroundImage       = Properties.Resources.SmallX;
            exitButton.BackgroundImageLayout = ImageLayout.Center;
            exitButton.Dock = DockStyle.Fill;
            exitButton.FlatAppearance.BorderColor        = Color.White;
            exitButton.FlatAppearance.BorderSize         = 0;
            exitButton.FlatAppearance.MouseOverBackColor = Color.SlateGray;
            exitButton.FlatStyle = FlatStyle.Flat;
            exitButton.Margin    = new Padding(0);
            // exitButton.Name = Phrases.GetPhrase("EXIT");
            exitButton.UseVisualStyleBackColor = false;

            languageButton.BackColor             = Color.Transparent;
            languageButton.BackgroundImage       = Properties.Resources.SmallLanguage;
            languageButton.BackgroundImageLayout = ImageLayout.Center;
            languageButton.Dock = DockStyle.Fill;
            languageButton.FlatAppearance.BorderColor        = Color.White;
            languageButton.FlatAppearance.BorderSize         = 0;
            languageButton.FlatAppearance.MouseOverBackColor = Color.SlateGray;
            languageButton.FlatStyle = FlatStyle.Flat;
            languageButton.Margin    = new Padding(0);
            languageButton.Name      = Phrases.GetPhrase("CROATIAN");
            languageButton.UseVisualStyleBackColor = false;

            fullScreenButton.BackColor             = Color.Transparent;
            fullScreenButton.BackgroundImage       = Properties.Resources.SmallWindow;
            fullScreenButton.BackgroundImageLayout = ImageLayout.Center;
            fullScreenButton.Dock = DockStyle.Fill;
            fullScreenButton.FlatAppearance.BorderColor        = Color.White;
            fullScreenButton.FlatAppearance.BorderSize         = 0;
            fullScreenButton.FlatAppearance.MouseOverBackColor = Color.SlateGray;
            fullScreenButton.FlatStyle = FlatStyle.Flat;
            fullScreenButton.Margin    = new Padding(0);
            //  fullScreenButton.Name = Phrases.GetPhrase("VIEWWINDOW");
            fullScreenButton.UseVisualStyleBackColor = false;
            holdFullScreenCode = "VIEWWINDOW";

            navigationTableLayoutPanel.ColumnCount = 11;
            navigationTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            navigationTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
            navigationTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            navigationTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            navigationTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            navigationTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            navigationTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            navigationTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            navigationTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            navigationTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            navigationTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));

            navigationTableLayoutPanel.Controls.Add(exitButton, 10, 0);
            navigationTableLayoutPanel.Controls.Add(aboutButton, 9, 0);
            navigationTableLayoutPanel.Controls.Add(fullScreenButton, 8, 0);
            navigationTableLayoutPanel.Controls.Add(languageButton, 7, 0);

            navigationTableLayoutPanel.Margin = new Padding(0);

            navigationTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
            navigationTableLayoutPanel.Size      = new Size(875, 75);
            navigationTableLayoutPanel.Dock      = DockStyle.Fill;
            navigationTableLayoutPanel.BackColor = Color.Transparent;

            //ribbon panel
            backButton.BackColor             = Color.Transparent;
            backButton.BackgroundImage       = Properties.Resources.SmallArrow;
            backButton.BackgroundImageLayout = ImageLayout.Center;
            backButton.Dock = DockStyle.Fill;
            backButton.FlatAppearance.BorderColor        = Color.White;
            backButton.FlatAppearance.BorderSize         = 0;
            backButton.FlatAppearance.MouseOverBackColor = Color.SlateGray;
            backButton.FlatStyle = FlatStyle.Flat;
            backButton.Margin    = new Padding(0);
            // backButton.Name = Phrases.GetPhrase("");
            backButton.UseVisualStyleBackColor = false;

            step1Button.BackColor             = Color.Transparent;
            step1Button.BackgroundImage       = Properties.Resources.SmallStep1;
            step1Button.BackgroundImageLayout = ImageLayout.Center;
            step1Button.Dock = DockStyle.Fill;
            step1Button.FlatAppearance.BorderColor        = Color.White;
            step1Button.FlatAppearance.BorderSize         = 0;
            step1Button.FlatAppearance.MouseOverBackColor = Color.SlateGray;
            step1Button.FlatStyle = FlatStyle.Flat;
            step1Button.Margin    = new Padding(0);
            // step1Button.Name = Phrases.GetPhrase("");
            step1Button.UseVisualStyleBackColor = false;


            pageTableLayoutPanel.ColumnCount = 11;
            pageTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            pageTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
            pageTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            pageTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            pageTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));
            pageTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70F));

            pageTableLayoutPanel.Controls.Add(step1Button, 5, 0);
            pageTableLayoutPanel.Controls.Add(backButton, 0, 0);

            pageTableLayoutPanel.Margin = new Padding(0);

            pageTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
            pageTableLayoutPanel.Size      = new Size(875, 75);
            pageTableLayoutPanel.Dock      = DockStyle.Fill;
            pageTableLayoutPanel.BackColor = Color.Transparent;
        }