public void AddSubCatItem(iProPQRSPortableLib.Type item)
        {
            AttribType SelectedItem=SelectedAllType.Find(u=>u.ProcAttribTypeID == item.ProcAttribTypeID );
            UIView uvblock=new UIView(new CoreGraphics.CGRect(0,Ycord,380,60));
            UISwitch usOption=new UISwitch(new CoreGraphics.CGRect(8,10,51,31));
            usOption.Tag = item.ProcAttribTypeID;
            if (SelectedItem != null) {
                usOption.On = true;
                SaveAttribTypeList.Add (SelectedItem);
                SubCattextvalue.Add(item.Label);
            }
            usOption.ValueChanged += (object sender, EventArgs e) => {
                AttribType additem=new AttribType();
                additem.IsHighLighted=false;
                additem.ProcAttribTypeID= item.ProcAttribTypeID;
                additem.ProcID=ProcID;
                additem.Value=item.Label;

                AttribType existingitem= SelectedAllType.Find(u=>u.ProcAttribTypeID == item.ProcAttribTypeID );
                if(usOption.On)
                {
                    if(existingitem == null)
                        SaveAttribTypeList.Add (additem);

                    SubCattextvalue.Add(item.Label);
                }
                else
                {
                    SubCattextvalue.Remove(item.Label);
                    if(existingitem != null)
                    {
                        existingitem.Value="";
                        SaveAttribTypeList.Remove (existingitem);
                        SaveAttribTypeList.Add (existingitem);
                    }

                }
            };
            UILabel lbldesc=new UILabel(new CoreGraphics.CGRect(78,10,300,50));
            lbldesc.Lines = 2;
            lbldesc.Text = item.Label;
            uslist.Add (usOption);

            UIView uvbreackline=new UIView(new CoreGraphics.CGRect(0,60,380,1));
            uvbreackline.BackgroundColor = UIColor.Gray;

            uvblock.Add (usOption);
            uvblock.Add (lbldesc);
            uvblock.Add (uvbreackline);

            usSubCatView.Add (uvblock);

            Ycord = Ycord + 61;

            usSubCatView.SizeToFit ();
            usSubCatView.ContentSize = new SizeF (float.Parse (usSubCatView.Frame.Width.ToString ()), float.Parse (usSubCatView.Frame.Height.ToString ()) + (float)Ycord-100 );
        }
		private async void UpdateLineType(UISwitch switchObj,iProPQRSPortableLib.Type lineTypeObj)
		{
			List<AttribType>  procAttribTypelist=new List<AttribType>();
			AttribType typeAttrib = new AttribType();
			typeAttrib.ProcID = procedureDetails.ID;
			typeAttrib.ProcAttribTypeID = lineTypeObj.ProcAttribTypeID;
			if(switchObj.On)
				typeAttrib.Value = "1";
			else
				typeAttrib.Value = "";
			typeAttrib.IsHighLighted = false;
			procAttribTypelist.Add(typeAttrib);

			var procAttribtsobject  = await AppDelegate.Current.pqrsMgr.UpdateProcAttribs(procAttribTypelist);
			if(procAttribtsobject != null && procAttribtsobject.status != null && procAttribtsobject.status.ToUpper() == "OK"){
				UpdateProcedureStatus ();
				Console.WriteLine ("Procedure Info. Successfully Saved.");
//				new UIAlertView("Procedure Info", "Successfully Saved."
//					, null, "ok", null).Show();
			}else{
				Console.WriteLine ("Procedure Info. Save failed.");
//				new UIAlertView("Error", procAttribtsobject.message
//					, null, "ok", null).Show();
			}
		}