0% found this document useful (0 votes)
9 views4 pages

HMS SourceCodeSample

Source for a BA project

Uploaded by

jomsm25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

HMS SourceCodeSample

Source for a BA project

Uploaded by

jomsm25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Form1.

cs

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

using System.Data.SqlClient;

namespace HospitalManagementSystem

public partial class Form1 : Form

public Form1()

InitializeComponent();

private void button1_Click(object sender, EventArgs e)

if (textBox1.Text == "admin" || textBox2.Text == "pass")

MessageBox.Show("Welcome Admin. You are logged in successfully.");


this.Visible = false;

Home obj1 = new Home();

obj1.ShowDialog();

textBox1.Text = "";

textBox2.Text = "";

else

MessageBox.Show("Invalid Username Or Password.");

Home.cs

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

namespace HospitalManagementSystem
{

public partial class Home : Form

public Home()

InitializeComponent();

private void patientRegistrationToolStripMenuItem_Click(object sender, EventArgs e)

PatientRegistration obj = new PatientRegistration();

obj.ShowDialog();

private void patientInformationToolStripMenuItem_Click(object sender, EventArgs e)

PatientInformation obj1 = new PatientInformation();

obj1.ShowDialog();

private void checkoutToolStripMenuItem_Click(object sender, EventArgs e)

PatientCheckOut obj2 = new PatientCheckOut();

obj2.ShowDialog();

}
private void roomInfoToolStripMenuItem_Click(object sender, EventArgs e)

RoomInfo obj3 = new RoomInfo();

obj3.ShowDialog();

private void addStaffToolStripMenuItem_Click(object sender, EventArgs e)

StaffInformation obj4 = new StaffInformation();

obj4.ShowDialog();

private void viewCheckoutToolStripMenuItem_Click(object sender, EventArgs e)

ViewwPatientCheckOut obj5 = new ViewwPatientCheckOut();

obj5.ShowDialog();

private void closeApplicationToolStripMenuItem_Click(object sender, EventArgs e)

System.Windows.Forms.Application.Exit();

You might also like