This commit is contained in:
Muhammad Anas Rashid 2016-04-21 22:32:00 +05:00
parent 06a9894ee6
commit 67f4d9755d
13 changed files with 115 additions and 14 deletions

View File

@ -55,6 +55,7 @@
// //
// DatePick // DatePick
// //
this.DatePick.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.DatePick.Location = new System.Drawing.Point(220, 280); this.DatePick.Location = new System.Drawing.Point(220, 280);
this.DatePick.MinimumSize = new System.Drawing.Size(0, 29); this.DatePick.MinimumSize = new System.Drawing.Size(0, 29);
this.DatePick.Name = "DatePick"; this.DatePick.Name = "DatePick";
@ -143,7 +144,6 @@
this.groupBox1.Size = new System.Drawing.Size(388, 436); this.groupBox1.Size = new System.Drawing.Size(388, 436);
this.groupBox1.TabIndex = 8; this.groupBox1.TabIndex = 8;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
// this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
// //
// metroTile2 // metroTile2
// //

View File

@ -30,12 +30,27 @@ namespace WindowsFormsApplication2
this.patient = patient; this.patient = patient;
InitializeComponent(); InitializeComponent();
} }
protected override void WndProc(ref Message message)
{
const int WM_SYSCOMMAND = 0x0112;
const int SC_MOVE = 0xF010;
switch (message.Msg)
{
case WM_SYSCOMMAND:
int command = message.WParam.ToInt32() & 0xfff0;
if (command == SC_MOVE)
return;
break;
}
base.WndProc(ref message);
}
private void Appointment_Load(object sender, EventArgs e) private void Appointment_Load(object sender, EventArgs e)
{ {
this.doctorPhoneIcon.MouseEnter += new EventHandler(docNumInfo); this.doctorPhoneIcon.MouseEnter += new EventHandler(docNumInfo);
DatePick.Format = DateTimePickerFormat.Custom; DatePick.Format = DateTimePickerFormat.Custom;
DatePick.CustomFormat = "dd-mm-yyyy"; //DatePick.CustomFormat = "dd-m-yyyy";
DatePick.ShowUpDown = true; DatePick.ShowUpDown = true;
SoundPlayer s = new SoundPlayer(@"..\..\Resources\AppointmentInfo.wav"); SoundPlayer s = new SoundPlayer(@"..\..\Resources\AppointmentInfo.wav");
s.Play(); s.Play();

View File

@ -20,7 +20,22 @@ namespace WindowsFormsApplication2
InitializeComponent(); InitializeComponent();
} }
protected override void WndProc(ref Message message)
{
const int WM_SYSCOMMAND = 0x0112;
const int SC_MOVE = 0xF010;
switch (message.Msg)
{
case WM_SYSCOMMAND:
int command = message.WParam.ToInt32() & 0xfff0;
if (command == SC_MOVE)
return;
break;
}
base.WndProc(ref message);
}
private void Login_Load(object sender, EventArgs e) private void Login_Load(object sender, EventArgs e)
{ {

View File

@ -70,7 +70,22 @@ namespace WindowsFormsApplication2
// System.Threading.Thread.Sleep(6000); // System.Threading.Thread.Sleep(6000);
s.Show(); s.Show();
} }
protected override void WndProc(ref Message message)
{
const int WM_SYSCOMMAND = 0x0112;
const int SC_MOVE = 0xF010;
switch (message.Msg)
{
case WM_SYSCOMMAND:
int command = message.WParam.ToInt32() & 0xfff0;
if (command == SC_MOVE)
return;
break;
}
base.WndProc(ref message);
}
private void Homepage_Load(object sender, EventArgs e) private void Homepage_Load(object sender, EventArgs e)
{ {
this.Text = patient; this.Text = patient;

View File

@ -14,13 +14,29 @@ namespace WindowsFormsApplication2
public partial class Login : MetroFramework.Forms.MetroForm public partial class Login : MetroFramework.Forms.MetroForm
{ {
Form parent = null; Form parent = null;
public Login(Form parent) public Login(Form parent)
{ {
InitializeComponent(); InitializeComponent();
this.parent = parent; this.parent = parent;
} }
protected override void WndProc(ref Message message)
{
const int WM_SYSCOMMAND = 0x0112;
const int SC_MOVE = 0xF010;
switch (message.Msg)
{
case WM_SYSCOMMAND:
int command = message.WParam.ToInt32() & 0xfff0;
if (command == SC_MOVE)
return;
break;
}
base.WndProc(ref message);
}
private void Login_Load(object sender, EventArgs e) private void Login_Load(object sender, EventArgs e)
{ {
this.Name = "Login Portal"; this.Name = "Login Portal";

View File

@ -19,23 +19,48 @@ namespace WindowsFormsApplication2
{ {
this.parent = parent; this.parent = parent;
InitializeComponent(); InitializeComponent();
}
}
private void Map_Shown(object sender, EventArgs e)
{
SoundPlayer s = new SoundPlayer(@"..\..\Resources\map.wav");
s.PlaySync();
}
protected override void WndProc(ref Message message)
{
const int WM_SYSCOMMAND = 0x0112;
const int SC_MOVE = 0xF010;
switch (message.Msg)
{
case WM_SYSCOMMAND:
int command = message.WParam.ToInt32() & 0xfff0;
if (command == SC_MOVE)
return;
break;
}
base.WndProc(ref message);
}
private void Map_Load(object sender, EventArgs e) private void Map_Load(object sender, EventArgs e)
{ {
SoundPlayer s = new SoundPlayer(@"..\..\Resources\map.wav");
s.Play();
this.metroTile3.MouseEnter += new EventHandler(logoutMsg); this.metroTile3.MouseEnter += new EventHandler(logoutMsg);
this.metroTile4.MouseEnter += new EventHandler(backScrMsg); this.metroTile4.MouseEnter += new EventHandler(backScrMsg);
this.metroTile1.MouseEnter += new EventHandler(Map_Shown);
} }
private void logoutMsg(object sender, EventArgs e) private void logoutMsg(object sender, EventArgs e)
{ {
this.metroTile3.Select();
SoundPlayer s = new SoundPlayer(@"..\..\Resources\logoutMsg.wav"); SoundPlayer s = new SoundPlayer(@"..\..\Resources\logoutMsg.wav");
s.PlaySync(); s.PlaySync();
} }
private void backScrMsg(object sender, EventArgs e) private void backScrMsg(object sender, EventArgs e)
{ {
this.metroTile4.Select();
SoundPlayer s = new SoundPlayer(@"..\..\Resources\backScrMsg.wav"); SoundPlayer s = new SoundPlayer(@"..\..\Resources\backScrMsg.wav");
s.PlaySync(); s.PlaySync();
} }

View File

@ -16,6 +16,7 @@ namespace WindowsFormsApplication2
{ {
List<int> tileSelected = new List<int>(); List<int> tileSelected = new List<int>();
Homepage Parent = null; Homepage Parent = null;
Form MDIParent = null; Form MDIParent = null;
bool bt1 = false, bt2 = false, bt3 = false, bt4 = false, bt5 = false, bt6 = false, bt7 = false, bt8 = false; bool bt1 = false, bt2 = false, bt3 = false, bt4 = false, bt5 = false, bt6 = false, bt7 = false, bt8 = false;
@ -27,7 +28,22 @@ namespace WindowsFormsApplication2
this.Parent = Parent; this.Parent = Parent;
this.MDIParent = MDIParent; this.MDIParent = MDIParent;
} }
protected override void WndProc(ref Message message)
{
const int WM_SYSCOMMAND = 0x0112;
const int SC_MOVE = 0xF010;
switch (message.Msg)
{
case WM_SYSCOMMAND:
int command = message.WParam.ToInt32() & 0xfff0;
if (command == SC_MOVE)
return;
break;
}
base.WndProc(ref message);
}
private void Symptoms_Load(object sender, EventArgs e) private void Symptoms_Load(object sender, EventArgs e)
{ {
SoundPlayer s11 = new SoundPlayer(@"..\..\Resources\SympotmsInfo.wav"); SoundPlayer s11 = new SoundPlayer(@"..\..\Resources\SympotmsInfo.wav");
@ -44,22 +60,21 @@ namespace WindowsFormsApplication2
{ {
if(tileSelected.Count!=0 ) if(tileSelected.Count!=0 )
{ {
if(tileSelected.Remove(8) == true && tileSelected.Count == 0)
if (tileSelected.Count == 1 && tileSelected.Exists(x => x.Equals(8)) == true )
{ {
SoundPlayer s = new SoundPlayer(@"..\..\Resources\docNotAvail.wav"); SoundPlayer s = new SoundPlayer(@"..\..\Resources\docNotAvail.wav");
s.Play(); s.Play();
tileSelected.Add(8); //tileSelected.Add(8);
} }
else else
{ {
this.Hide(); this.Hide();
Map m = new Map(this); Map m = new Map(this);
m.MdiParent = MDIParent; m.MdiParent = MDIParent;
m.Show(); m.Show();
tileSelected.Add(8); //tileSelected.Add(8);
} }
} }