Exemplo n.º 1
0
 private void Industrial_CheckedChanged(object sender, EventArgs e)
 {
     lblWelcome.Hide();
     lblOption.Hide();
     PeakHours.Show();
     OffPeak.Show();
     lblEnter.Show();
     txtInput.Show();
     btnCalculate.Show();
     btnClear.Show();
     Output.Show();
     Choose.Hide();
     btnExit.Show();
 }
Exemplo n.º 2
0
 private void Choose_Click(object sender, EventArgs e)
 {
     Choose.Hide();
     lblWelcome.Hide();
     lblOption.Hide();
     Residential.Show();
     Commercial.Show();
     Industrial.Show();
     PeakHours.Hide();
     OffPeak.Hide();
     lblEnter.Hide();
     txtInput.Hide();
     btnCalculate.Hide();
     btnClear.Hide();
     Output.Hide();
     btnExit.Hide();
 }
Exemplo n.º 3
0
        //
        // Korisnik je kliknuo da trenutni ulogovani nalog nije njegov
        //
        private void linkLabelNotYou_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            SignUp.Show();
            Choose.Hide();

            var query = from user in db.Users
                        orderby user.ID
                        select user;

            int y = 10;

            foreach (var item in query)
            {
                LinkLabel linkLabel = new LinkLabel();
                linkLabel.Text         = item.name + ' ' + item.surname;
                linkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkedLabelClicked);
                linkLabel.Location     = new Point(300, y);
                ShowUsers.Controls.Add(linkLabel);
                y += 30;
            }
        }
Exemplo n.º 4
0
 //
 // Ponovno logovanje (iz glavnog prozora)
 //
 private void buttonLogIn_Click(object sender, EventArgs e)
 {
     Choose.Hide();
     SignUp.Hide();
     textBoxUser.Text = db.getLastUser().name;
 }