private void butAddAnesthMeds_Click(object sender, EventArgs e){
				AnesthMedsInventory med = new AnesthMedsInventory();
				med.IsNew = true;
				FormAnesthMedsEdit FormM = new FormAnesthMedsEdit();
				FormM.Med = med;
				FormM.ShowDialog();
			if (FormM.DialogResult == DialogResult.OK)
			{
				FillGrid();
			} 

		}
        private void butAddAnesthMeds_Click(object sender, EventArgs e)
        {
            AnesthMedsInventory med = new AnesthMedsInventory();

            med.IsNew = true;
            FormAnesthMedsEdit FormM = new FormAnesthMedsEdit();

            FormM.Med = med;
            FormM.ShowDialog();
            if (FormM.DialogResult == DialogResult.OK)
            {
                FillGrid();
            }
        }
        private void butAdjustQtys_Click(object sender, EventArgs e)
        {
            Userod curUser = Security.CurUser;

            if (GroupPermissions.HasPermission(curUser.UserGroupNum, Permissions.AnesthesiaControlMeds))
            {
                FormAnesthMedsEdit  FormA = new FormAnesthMedsEdit();
                AnesthMedsInventory med   = new AnesthMedsInventory();
                med.IsNew = true;
                FormA.ShowDialog();
                return;
            }
            else
            {
                MessageBox.Show(Lan.g(this, "You must be an administrator to unlock this action"));
                return;
            }
        }
		private void gridAnesthMedsInventory_CellDoubleClick(object sender, ODGridClickEventArgs e){
			Userod curUser = Security.CurUser;
			if (GroupPermissions.HasPermission(curUser.UserGroupNum, Permissions.AnesthesiaControlMeds))
			{
				FormAnesthMedsEdit FormME = new FormAnesthMedsEdit();
				FormME.Med = listAnestheticMeds[e.Row];
				FormME.ShowDialog();
				if (FormME.DialogResult == DialogResult.OK)
				{
					FillGrid();
				}
				return;
			}
			else
			{
				MessageBox.Show(Lan.g(this, "You must be an administrator with rights to control anesthetic medication inventory levels to unlock this action"));
				return;
			} 

		}
        private void gridAnesthMedsInventory_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            Userod curUser = Security.CurUser;

            if (GroupPermissions.HasPermission(curUser.UserGroupNum, Permissions.AnesthesiaControlMeds))
            {
                FormAnesthMedsEdit FormME = new FormAnesthMedsEdit();
                FormME.Med = listAnestheticMeds[e.Row];
                FormME.ShowDialog();
                if (FormME.DialogResult == DialogResult.OK)
                {
                    FillGrid();
                }
                return;
            }
            else
            {
                MessageBox.Show(Lan.g(this, "You must be an administrator with rights to control anesthetic medication inventory levels to unlock this action"));
                return;
            }
        }
		private void butAdjustQtys_Click(object sender, EventArgs e){
			Userod curUser = Security.CurUser;
			if (GroupPermissions.HasPermission(curUser.UserGroupNum, Permissions.AnesthesiaControlMeds))
			{
				FormAnesthMedsEdit FormA = new FormAnesthMedsEdit();
				AnesthMedsInventory med = new AnesthMedsInventory();
				med.IsNew = true;
				FormA.ShowDialog();
				return;
			}
			else
			{
				MessageBox.Show(Lan.g(this, "You must be an administrator to unlock this action"));
				return;
			} 

		}