//Next button private void button1_Click(object sender, EventArgs e) { double fee = 0; ResultPanel.Visible = false; if (checkBox1.Checked) { MoesPanel.Visible = true; this.MoesTitle.Location = new System.Drawing.Point(230, 10); MoesTitle.Text = "MOE'S"; fee = 3.0; } else if (checkBox2.Checked) { MoesPanel.Visible = true; this.MoesTitle.Location = new System.Drawing.Point(210, 10); MoesTitle.Text = "CHINESE"; fee = 3.0; } else if (checkBox3.Checked) { MoesPanel.Visible = true; this.MoesTitle.Location = new System.Drawing.Point(200, 10); MoesTitle.Text = "SONNY && TONY'S"; fee = 2.5; } else if (checkBox4.Checked) { MoesPanel.Visible = true; this.MoesTitle.Location = new System.Drawing.Point(190, 10); MoesTitle.Text = "CHICKEN && RIB CRIB"; fee = 2.0; } else if (checkBox5.Checked) { MoesPanel.Visible = true; MoesTitle.Text = " "; } else { showError("Check a box!"); return; } tipBox.Text = "20"; delBox.Text = Convert.ToString(fee); //Always empty the boxes when clicking next Name1.Clear(); price1.Clear(); Name2.Clear(); price2.Clear(); Name3.Clear(); price3.Clear(); Name4.Clear(); price4.Clear(); Name5.Clear(); price5.Clear(); Name6.Clear(); price6.Clear(); Name7.Clear(); price7.Clear(); Name8.Clear(); price8.Clear(); Name9.Clear(); price9.Clear(); Name10.Clear(); price10.Clear(); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (Name1 != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Name1); } if (Name2 != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Name2); } if (Name3 != 0) { hash ^= Name3.GetHashCode(); } if (Name4 != 0L) { hash ^= Name4.GetHashCode(); } if (Name5 != 0) { hash ^= Name5.GetHashCode(); } if (Name6 != 0UL) { hash ^= Name6.GetHashCode(); } if (Name7 != false) { hash ^= Name7.GetHashCode(); } if (Name8.Length != 0) { hash ^= Name8.GetHashCode(); } hash ^= name9_.GetHashCode(); hash ^= name10_.GetHashCode(); hash ^= name11_.GetHashCode(); hash ^= name12_.GetHashCode(); hash ^= name13_.GetHashCode(); hash ^= name14_.GetHashCode(); hash ^= name15_.GetHashCode(); hash ^= name16_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }