Esempio n. 1
0
        public Form2()
        {
            InitializeComponent();
            panelMainDashboard.BackColor    = System.Drawing.Color.FromArgb(100, 100, 40);
            panelMainPaySomething.BackColor = System.Drawing.Color.FromArgb(100, 100, 40);
            panelMainSendMail.BackColor     = System.Drawing.Color.FromArgb(100, 100, 40);
            panelMainSettings.BackColor     = System.Drawing.Color.FromArgb(100, 100, 40);
            panelMainTransfer.BackColor     = System.Drawing.Color.FromArgb(100, 100, 40);

            panelMainDashboard.Visible    = true;
            panelMainPaySomething.Visible = false;
            panelMainSendMail.Visible     = false;
            panelMainTransfer.Visible     = false;
            panelMainSettings.Visible     = false;

            pictureFailed.Visible = false;
            pictureValid.Visible  = false;
            lastMenupanel         = panelMainDashboard;

            UIDashboardAccountFrame.generateDashboard(ibanList, panelMainDashboard, exchangeTbl);
            labelLastName.Text = DataManagement.getLastName();
            using (var context = new MitBankDBEntities2())
            {
                var result2 = context.getLastLogin(DataManagement.getIdUsername());
                foreach (var item in result2)
                {
                    labelLastLogin.Text = item.ToString();
                }
            }
        }
Esempio n. 2
0
        private void Dashboard_Click(object sender, EventArgs e)
        {
            lastMenupanel.Visible      = false;
            panelMainDashboard.Visible = true;
            lastMenupanel.SendToBack();
            lastMenupanel = panelMainDashboard;

            UIDashboardAccountFrame.generateDashboard(ibanList, panelMainDashboard, exchangeTbl);
        }
Esempio n. 3
0
        public Form2()
        {
            InitializeComponent();
            panelMainDashboard.BackColor    = System.Drawing.Color.FromArgb(100, 100, 40);
            panelMainPaySomething.BackColor = System.Drawing.Color.FromArgb(100, 100, 40);
            panelMainSendMail.BackColor     = System.Drawing.Color.FromArgb(100, 100, 40);
            panelMainSettings.BackColor     = System.Drawing.Color.FromArgb(100, 100, 40);
            panelMainTransfer.BackColor     = System.Drawing.Color.FromArgb(100, 100, 40);

            panelMainDashboard.Visible    = true;
            panelMainPaySomething.Visible = false;
            panelMainSendMail.Visible     = false;
            panelMainTransfer.Visible     = false;
            panelMainSettings.Visible     = false;

            pictureFailed.Visible = false;
            pictureValid.Visible  = false;
            lastMenupanel         = panelMainDashboard;

            UIDashboardAccountFrame.generateDashboard(ibanList, panelMainDashboard, exchangeTbl);
            labelLastName.Text = DataManagement.getLastName();
            using (var context = new MitBankDBEntities())
            {
                var result2 = context.getLastLogin(DataManagement.getIdUsername());
                foreach (var item in result2)
                {
                    labelLastLogin.Text = item.ToString();
                }
            }

            labelChangeEmail.Visible   = false;
            textBoxChangeEmail.Visible = false;

            using (var context = new MitBankDBEntities())
            {
                var result = context.selectOnIndividuals(DataManagement.getIdUsername()).ToArray();

                foreach (var items in result)
                {
                    labelLastNameSettings.Text  = items.LastName;
                    labelFirstNameSettings.Text = items.FirstName;
                    labelEmailSettings.Text     = items.Email;
                    labelBirthdateSettings.Text = items.Birthday.ToShortDateString();

                    int idInd = items.ID;
                }
            }
        }
Esempio n. 4
0
        public Form2()
        {
            InitializeComponent();
            panelMainDashboard.BackColor    = Color.FromArgb(100, 100, 40);
            panelMainPaySomething.BackColor = Color.FromArgb(100, 100, 40);
            panelMainSendMail.BackColor     = Color.FromArgb(100, 100, 40);
            panelMainSettings.BackColor     = Color.FromArgb(100, 100, 40);
            panelMainTransfer.BackColor     = Color.FromArgb(100, 100, 40);

            panelMainDashboard.Visible    = true;
            panelMainPaySomething.Visible = false;
            panelMainSendMail.Visible     = false;
            panelMainTransfer.Visible     = false;
            panelMainSettings.Visible     = false;

            pictureFailed.Visible = false;
            pictureValid.Visible  = false;
            lastMenupanel         = panelMainDashboard;

            UIDashboardAccountFrame.generateDashboard(ibanList, panelMainDashboard, exchangeTbl);
        }