Beispiel #1
0
 private void botonHist_Click(object sender, EventArgs e)
 {
     if (h % 2 == 0)
     {
         Reset.Show();
         listBox1.Show();
         int numeros = 1;
         foreach (var item in historial)
         {
             string operacion = numeros.ToString() + ". " + item;
             listBox1.Items.Add(operacion);
             historialenlista.Add(operacion);
             numeros += 1;
         }
     }
     else
     {
         foreach (var item in historialenlista)
         {
             listBox1.Items.Remove(item);
         }
         listBox1.Hide();
         Reset.Hide();
     }
     h += 1;
 }
Beispiel #2
0
 public Form1()
 {
     InitializeComponent();
     password2.Hide();
     Check.Hide();
     Reset.Hide();
 }
Beispiel #3
0
 private void Reset_Click(object sender, EventArgs e)
 {
     label1.Text    = "";
     password1.Text = "";
     password2.Text = "";
     password2.Hide();
     Check.Hide();
     Reset.Hide();
 }
Beispiel #4
0
 private void AdminI_Load(object sender, EventArgs e)
 {
     Action.Hide();
     Reset.Hide();
     ViewUsersRequests.Hide();
     Sendtoc.Hide();
     Sendtol.Hide();
     SendNotice.Hide();
     noticeInfo.Hide();
 }
Beispiel #5
0
 private void Mainscreen()
 {
     backbutton();
     reset();
     enableinputs();
     Action.Hide();
     Reset.Hide();
     ViewUsersRequests.Hide();
     Sendtoc.Hide();
     Sendtol.Hide();
     SendNotice.Hide();
     noticeInfo.Hide();
     SHControls.Text = "Log Out";
 }
Beispiel #6
0
        private void button7_Click(object sender, EventArgs e)
        {
            login = new SScreen();
            {
                //if (this.WindowState == FormWindowState.Maximized)
                //{
                //    SHControls.Text = "Log Out";
                //    AUser.Show();
                //    VUser.Show();
                //    EUser.Show();
                //    RUser.Show();
                //    VRequest.Show();
                //    SNotice.Show();
                //    ControlsFlag = true;
                //}
                //else
                //{
                //    if (ControlsFlag)
                //    {
                //        SHControls.Text = "Back";
                //        AUser.Hide();
                //        VUser.Hide();
                //        EUser.Hide();
                //        RUser.Hide();
                //        VRequest.Hide();
                //        SNotice.Hide();
                //        ControlsFlag = false;
                //    }
                //    else
                //    {
                //        SHControls.Text = "Log Out";
                //        AUser.Show();
                //        VUser.Show();
                //        EUser.Show();
                //        RUser.Show();
                //        VRequest.Show();
                //        SNotice.Show();
                //        ControlsFlag = true;
                //    }
                //}
            }

            if (SHControls.Text == "Log Out")
            {
                this.Close();
                login.Show();
            }
            else if (SHControls.Text == "Back")
            {
                reset();
                enableinputs();
                ViewUsersRequests.Hide();
                Sendtoc.Hide();
                Sendtol.Hide();
                SendNotice.Hide();
                noticeInfo.Hide();
                backbutton();
                SHControls.Text = "Log Out";
                Action.Hide();
                Reset.Hide();
            }
            //add back control
        }