protected void Button1_Click(object sender, EventArgs e) { string s = ""; if (Label6.Equals("Under Weight")) { s = "Under Weight"; Session["type"] = "Under Weight"; } else if (Label6.Equals("Normal")) { s = "Normal"; Session["type"] = "Normal"; } else if (Label6.Equals("Over Weight")) { s = "Over Weight"; Session["type"] = "Over Weight"; } Session["wght"] = s; Session["Break"] = DropDownList1.Text; Session["Lunch"] = DropDownList2.Text; Session["Snacks"] = DropDownList3.Text; Session["Dinner"] = DropDownList4.Text; Response.Redirect("Diet.aspx"); }
private void pictureBox7_Click(object sender, EventArgs e) { timer2.Stop(); timer4.Stop(); email.Hide(); calculator.Hide(); musicplayer.Hide(); books.Hide(); pictureBox16.Show(); Label6.Show(); twittert.Hide(); internet4.Visible = true; email.Visible = true; books.Visible = true; if (internet4.Visible == true) { amazon.Visible = false; } if (Properties.Settings.Default.calculator == "true") { calculator.Show(); } if (Properties.Settings.Default.music == "true") { musicplayer.Show(); } if (Properties.Settings.Default.twitter == "true") { twittert.Visible = true; } if (Properties.Settings.Default.Achievements == "true") { achievements.Show(); } if (Properties.Settings.Default.xbox == "true") { xbox.Show(); } if (Properties.Settings.Default.notepad == "true") { notepadbox.Visible = true; } if (Properties.Settings.Default.Achievements == "true") { achievements.Show(); } }
protected override void OnDisappearing() { base.OnDisappearing(); Label1.RemoveAllGestureRecognizers(); Label2.RemoveAllGestureRecognizers(); Label3.RemoveAllGestureRecognizers(); Label4.RemoveAllGestureRecognizers(); Label5.RemoveAllGestureRecognizers(); Label6.RemoveAllGestureRecognizers(); }
void FixGesturesUsingXaml() { //the following is only necessary until Xamarin give us a hook into this I've filed a bugzilla about it //https://bugzilla.xamarin.com/show_bug.cgi?id=30467 //if you don't want to write the following lines of code, then MAKE YOUR VOICE HEARD ON THAT BUG PLEASE! :) Label1.ProcessGestureRecognizers(); Label2.ProcessGestureRecognizers(); Label3.ProcessGestureRecognizers(); Label4.ProcessGestureRecognizers(); Label5.ProcessGestureRecognizers(); Label6.ProcessGestureRecognizers(); }
private void pictureBox1_Click(object sender, EventArgs e) { Label6.Hide(); Panel1.Size = new Size(45, 727); pictureBox1.Hide(); Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); PictureBox2.Show(); DataGridView1.Hide(); }
private void PictureBox2_Click(object sender, EventArgs e) { Panel1.Size = new Size(136, 727); Button1.Show(); Button2.Show(); Button3.Show(); Button4.Show(); pictureBox1.Show(); Label6.Show(); PictureBox2.Hide(); }
private void Frm_usuario_Load(object sender, EventArgs e) { // oculta elementos de la interfaz como los botones de guardar actualizar y eliminar Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); pictureBox1.Hide(); PictureBox3.SetBounds(this.Width - 80, 25, PictureBox3.Width, PictureBox3.Height); Label6.Hide(); DataGridView1.Hide(); ComboBox1.SelectedIndex = 0; }
private void Frm_usuario_Load(object sender, EventArgs e) { // oculta elementos de la interfaz Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); pictureBox1.Hide(); PictureBox3.SetBounds(this.Width - 80, 25, PictureBox3.Width, PictureBox3.Height); Label6.Hide(); //DataGridView1.Hide(); ComboBox1.SelectedIndex = 0; ComboBox2.SelectedIndex = 0; }
private void pictureBox8_Click(object sender, EventArgs e) { loadtimer.Stop(); timer11.Stop(); timer12.Enabled = true; timer2.Stop(); timer4.Stop(); pictureBox16.Hide(); Label6.Hide(); timer1.Stop(); internet4.Hide(); email.Hide(); calculator.Hide(); musicplayer.Hide(); books.Hide(); twittert.Hide(); notepadbox.Hide(); if (Properties.Settings.Default.amazon == "true") { amazon.Show(); } if (Properties.Settings.Default.xbox == "true") { xbox.Show(); } if (Properties.Settings.Default.notepad == "true") { notepadbox.Visible = true; } if (Properties.Settings.Default.Achievements == "true") { achievements.Show(); } }
private void Frm_usuario_Load(object sender, EventArgs e) { Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); pictureBox1.Hide(); PictureBox3.SetBounds(this.Width - 80, 25, PictureBox3.Width, PictureBox3.Height); Label6.Hide(); DataGridView1.Hide(); ComboBox1.SelectedIndex = 0; conexion.llenarComboBox("SELECT * from tbl_departamentos", cb_departamento, "id_departamento", "nombre"); if (cb_departamento.SelectedIndex > 0 & cb_nombramiento.SelectedIndex > 0) { cb_departamento.SelectedIndex = 0; } cb_nombramiento.SelectedIndex = 0; }