Exemplo n.º 1
0
        private void butTerminal_Click(object sender, EventArgs e)
        {
            //<List>.All() returns true for an empty list.
            if (table.Select().All(x => x["showInTerminal"].ToString() == ""))
            {
                MsgBox.Show(this, "No forms for this patient are set to show in the kiosk.");
                return;
            }
            if (PrefC.GetLong(PrefName.ProcessSigsIntervalInSecs) == 0)
            {
                MsgBox.Show(this, "Cannot open kiosk unless process signal interval is set. To set it, go to Setup > Miscellaneous.");
                return;
            }
            FormTerminal formT = new FormTerminal();

            formT.IsSimpleMode = true;
            formT.PatNum       = PatNum;
            formT.ShowDialog();
            FillGrid();
        }
Exemplo n.º 2
0
        private void butTerminal_Click(object sender, EventArgs e)
        {
            bool hasTerminal = false;

            for (int i = 0; i < table.Rows.Count; i++)
            {
                if (table.Rows[i]["showInTerminal"].ToString() != "")
                {
                    hasTerminal = true;
                    break;
                }
            }
            if (!hasTerminal)
            {
                MsgBox.Show(this, "No forms for this patient are set to show in the terminal.");
                return;
            }
            FormTerminal formT = new FormTerminal();

            formT.IsSimpleMode = true;
            formT.PatNum       = PatNum;
            formT.ShowDialog();
            FillGrid();
        }
Exemplo n.º 3
0
 private void menuItemTerminal_Click(object sender,EventArgs e)
 {
     FormTerminal FormT=new FormTerminal();
     FormT.ShowDialog();
     Application.Exit();//always close after coming out of terminal mode as a safety precaution.*/
 }
Exemplo n.º 4
0
		private void butTerminal_Click(object sender,EventArgs e) {
			bool hasTerminal=false;
			for(int i=0;i<table.Rows.Count;i++) {
				if(table.Rows[i]["showInTerminal"].ToString()!="") {
					hasTerminal=true;
					break;
				}
			}
			if(!hasTerminal) {
				MsgBox.Show(this,"No forms for this patient are set to show in the terminal.");
				return;
			}
			FormTerminal formT=new FormTerminal();
			formT.IsSimpleMode=true;
			formT.PatNum=PatNum;
			formT.ShowDialog();
			FillGrid();
		}