Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();

            hash = (hash * 397) ^ PId.GetHashCode();
            hash = (hash * 397) ^ LId.GetHashCode();

            return(hash);
        }
 private void FormReleasePatient_Load(object sender, EventArgs e)
 {
     textBoxPatientId.Text = PId.ToString();
     textBoxSSN.Text       = SSN;
     textBoxPrice.Text     = "0";
 }
Beispiel #3
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (comboBox1.Text == "" || comboBox2.Text == "" || !comboBox2.Items.Contains(Convert.ToInt32(comboBox2.Text)) || PId.Equals(""))
     {
         MessageBox.Show("Enter in valid data", "Info", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else
     {
         wf.AssignRoom(Convert.ToInt32(PId.Text), comboBox1.Text, Convert.ToInt32(comboBox2.Text));
     }
     comboBox1_SelectedIndexChanged(sender, e);
     Assign_Load(sender, e);
 }