示例#1
0
 /// <summary>Initializes a new instance of the <see cref="ComponentType"/> class.</summary>
 public ComponentType()
 {
     this.Bit = nextBit;
     nextBit <<= 1;
     this.Id = nextId;
     ++nextId;
 }
示例#2
0
        /// <summary>Initializes a new instance of the <see cref="ComponentType"/> class.</summary>
        internal ComponentType()
        {
            this.Id = nextId;
            this.Bit = nextBit;

            nextId++;
            nextBit <<= 1;
        }
		void ProgressHandler (nint receivedSize, nint expectedSize)
		{
			if (activityIndicator == null) {
				InvokeOnMainThread (()=> {
					activityIndicator = new UIActivityIndicatorView (UIActivityIndicatorViewStyle.Gray);
					ImageView.AddSubview (activityIndicator);
					activityIndicator.Center = ImageView.Center;
					activityIndicator.StartAnimating ();
				});
			}
		}
		public FoundationResponse (NSData responseData, NSHttpUrlResponse urlResponse)
		{
			data = responseData;
			statusCode = urlResponse.StatusCode;

			headers = new Dictionary<string, string> ();
			var hs = urlResponse.AllHeaderFields;
			foreach (var k in hs.Keys) {
				headers[k.ToString ()] = hs.ObjectForKey (k).ToString ();
			}
		}
示例#5
0
		public override UIView GetViewForHeader (UITableView tableView, nint section)
		{
			var sectionTitleLabel = new UILabel (new CGRect (10, 3, 300, 22));
			sectionTitleLabel.Text = "Resistence Workouts";
			sectionTitleLabel.BackgroundColor = UIColor.Clear;
			sectionTitleLabel.TextColor = UIColor.FromRGBA (0.43f, 0.43f, 0.43f, 1);
			sectionTitleLabel.Font = UIFont.FromName ("HelveticaNeue", 15);

			var backgroundView = new UIImageView (FitpulseTheme.SharedTheme.TableSectionHeaderBackground);
			backgroundView.Add (sectionTitleLabel);

			return backgroundView;
		}
示例#6
0
		public override nint RowsInSection (UITableView tableView, nint section)
		{
			return 5;
		}
 public object[] Read29_postAlbumResponse() {
     Reader.MoveToContent();
     object[] p = new object[5];
     p[0] = new global::System.Boolean();
     p[3] = new global::System.Int32();
     Reader.MoveToContent();
     int whileIterations39 = 0;
     int readerCount39 = ReaderCount;
     while (Reader.NodeType == System.Xml.XmlNodeType.Element) {
         string root = Reader.GetAttribute("root", "http://schemas.xmlsoap.org/soap/encoding/");
         if (root == null || System.Xml.XmlConvert.ToBoolean(root)) break;
         ReadReferencedElement();
         Reader.MoveToContent();
         CheckReaderCount(ref whileIterations39, ref readerCount39);
     }
     bool isEmptyWrapper = Reader.IsEmptyElement;
     Reader.ReadStartElement();
     Fixup fixup = new Fixup(p, new System.Xml.Serialization.XmlSerializationFixupCallback(this.fixup_Read29_postAlbumResponse), 5);
     AddFixup(fixup);
     IsReturnValue = true;
     bool[] paramsRead = new bool[5];
     Reader.MoveToContent();
     int whileIterations40 = 0;
     int readerCount40 = ReaderCount;
     while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None) {
         if (Reader.NodeType == System.Xml.XmlNodeType.Element) {
             if (!paramsRead[0] && (IsReturnValue || ((object) Reader.LocalName == (object)id10_dataUsed && (object) Reader.NamespaceURI == (object)id2_Item))) {
                 object rre = ReadReferencingElement(id11_boolean, id4_Item, out fixup.Ids[0]);
                 if (rre != null) {
                     try {
                         p[0] = (global::System.Boolean)rre;
                     }
                     catch (System.InvalidCastException) {
                         throw CreateInvalidCastException(typeof(global::System.Boolean), rre, null);
                     }
                     Referenced(p[0]);
                 }
                 IsReturnValue = false;
                 paramsRead[0] = true;
             }
             else if (!paramsRead[1] && ((object) Reader.LocalName == (object)id1_artist && (object) Reader.NamespaceURI == (object)id2_Item)) {
                 object rre = ReadReferencingElement(id3_string, id4_Item, out fixup.Ids[1]);
                 try {
                     p[1] = (global::System.String)rre;
                 }
                 catch (System.InvalidCastException) {
                     throw CreateInvalidCastException(typeof(global::System.String), rre, null);
                 }
                 Referenced(p[1]);
                 paramsRead[1] = true;
             }
             else if (!paramsRead[2] && ((object) Reader.LocalName == (object)id23_album && (object) Reader.NamespaceURI == (object)id2_Item)) {
                 object rre = ReadReferencingElement(id3_string, id4_Item, out fixup.Ids[2]);
                 try {
                     p[2] = (global::System.String)rre;
                 }
                 catch (System.InvalidCastException) {
                     throw CreateInvalidCastException(typeof(global::System.String), rre, null);
                 }
                 Referenced(p[2]);
                 paramsRead[2] = true;
             }
             else if (!paramsRead[3] && ((object) Reader.LocalName == (object)id24_year && (object) Reader.NamespaceURI == (object)id2_Item)) {
                 object rre = ReadReferencingElement(id25_int, id4_Item, out fixup.Ids[3]);
                 if (rre != null) {
                     try {
                         p[3] = (global::System.Int32)rre;
                     }
                     catch (System.InvalidCastException) {
                         throw CreateInvalidCastException(typeof(global::System.Int32), rre, null);
                     }
                     Referenced(p[3]);
                 }
                 paramsRead[3] = true;
             }
             else if (!paramsRead[4] && ((object) Reader.LocalName == (object)id12_message && (object) Reader.NamespaceURI == (object)id2_Item)) {
                 object rre = ReadReferencingElement(id3_string, id4_Item, out fixup.Ids[4]);
                 try {
                     p[4] = (global::System.String)rre;
                 }
                 catch (System.InvalidCastException) {
                     throw CreateInvalidCastException(typeof(global::System.String), rre, null);
                 }
                 Referenced(p[4]);
                 paramsRead[4] = true;
             }
             else {
                 UnknownNode((object)p);
             }
         }
         else {
             UnknownNode((object)p);
         }
         Reader.MoveToContent();
         CheckReaderCount(ref whileIterations40, ref readerCount40);
     }
     if (!isEmptyWrapper) ReadEndElement();
     ReadReferencedElements();
     return p;
 }
示例#8
0
		public override nint RowsInSection (UITableView tableview, nint section)
		{
			return filteredItems.Count;
		}
示例#9
0
文件: Model1.cs 项目: matsmats/GitHub
 /// <summary>
 /// Create a new smu_Training object.
 /// </summary>
 /// <param name="trainingId">Initial value of the TrainingId property.</param>
 /// <param name="trainingTypeId">Initial value of the TrainingTypeId property.</param>
 /// <param name="trainingName">Initial value of the TrainingName property.</param>
 /// <param name="trainingDescription">Initial value of the TrainingDescription property.</param>
 /// <param name="points">Initial value of the Points property.</param>
 /// <param name="pointsTypeId">Initial value of the PointsTypeId property.</param>
 /// <param name="pointsIntervall">Initial value of the PointsIntervall property.</param>
 /// <param name="pointsIntervallFactor">Initial value of the PointsIntervallFactor property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static smu_Training Createsmu_Training(global::System.Int32 trainingId, global::System.Int32 trainingTypeId, global::System.String trainingName, global::System.String trainingDescription, global::System.Int32 points, global::System.Int32 pointsTypeId, global::System.Int32 pointsIntervall, global::System.Decimal pointsIntervallFactor, global::System.Boolean isActive)
 {
     smu_Training smu_Training = new smu_Training();
     smu_Training.TrainingId = trainingId;
     smu_Training.TrainingTypeId = trainingTypeId;
     smu_Training.TrainingName = trainingName;
     smu_Training.TrainingDescription = trainingDescription;
     smu_Training.Points = points;
     smu_Training.PointsTypeId = pointsTypeId;
     smu_Training.PointsIntervall = pointsIntervall;
     smu_Training.PointsIntervallFactor = pointsIntervallFactor;
     smu_Training.IsActive = isActive;
     return smu_Training;
 }
    public override nint RowsInSection(UITableView tableView, nint section)
    {
      if (null == this.sitecoreItems)
      {
        //@adk : workaround for unexpected UIKit behaviour
        return 0;
      }

      this.ValidateFields();
      return this.sitecoreItems.Count();
    }
 public override nint RowsInSection(UITableView tableview, nint section) {
     return RowCount;
 }
示例#12
0
 /// <summary>
 /// Create a new user_group_access object.
 /// </summary>
 /// <param name="uga_id">Initial value of the uga_id property.</param>
 /// <param name="access_id">Initial value of the access_id property.</param>
 /// <param name="user_group_id">Initial value of the user_group_id property.</param>
 /// <param name="created_date">Initial value of the created_date property.</param>
 /// <param name="created_by">Initial value of the created_by property.</param>
 /// <param name="updated_date">Initial value of the updated_date property.</param>
 /// <param name="updated_by">Initial value of the updated_by property.</param>
 public static user_group_access Createuser_group_access(global::System.Int32 uga_id, global::System.Int32 access_id, global::System.Int32 user_group_id, global::System.DateTime created_date, global::System.String created_by, global::System.DateTime updated_date, global::System.String updated_by)
 {
     user_group_access user_group_access = new user_group_access();
     user_group_access.uga_id = uga_id;
     user_group_access.access_id = access_id;
     user_group_access.user_group_id = user_group_id;
     user_group_access.created_date = created_date;
     user_group_access.created_by = created_by;
     user_group_access.updated_date = updated_date;
     user_group_access.updated_by = updated_by;
     return user_group_access;
 }
 public override string TitleForHeader (UITableView tableView, nint section)
 {
   return this.sitecoreItem.DisplayName;
 }
示例#14
0
文件: Model1.cs 项目: matsmats/GitHub
 /// <summary>
 /// Create a new smu_Level object.
 /// </summary>
 /// <param name="levelId">Initial value of the LevelId property.</param>
 /// <param name="levelMin">Initial value of the LevelMin property.</param>
 /// <param name="levelMax">Initial value of the LevelMax property.</param>
 public static smu_Level Createsmu_Level(global::System.Int32 levelId, global::System.Int32 levelMin, global::System.Int32 levelMax)
 {
     smu_Level smu_Level = new smu_Level();
     smu_Level.LevelId = levelId;
     smu_Level.LevelMin = levelMin;
     smu_Level.LevelMax = levelMax;
     return smu_Level;
 }
示例#15
0
		public override nint RowsInSection (UITableView tableview, nint section)
		{
			return section == 0 ? 7 : 2;
		}
示例#16
0
文件: Model1.cs 项目: matsmats/GitHub
 /// <summary>
 /// Create a new smu_UserTraining object.
 /// </summary>
 /// <param name="userTrainingId">Initial value of the UserTrainingId property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="trainingDate">Initial value of the TrainingDate property.</param>
 /// <param name="isSaved">Initial value of the IsSaved property.</param>
 public static smu_UserTraining Createsmu_UserTraining(global::System.Int32 userTrainingId, global::System.Int32 userId, global::System.DateTime trainingDate, global::System.Boolean isSaved)
 {
     smu_UserTraining smu_UserTraining = new smu_UserTraining();
     smu_UserTraining.UserTrainingId = userTrainingId;
     smu_UserTraining.UserId = userId;
     smu_UserTraining.TrainingDate = trainingDate;
     smu_UserTraining.IsSaved = isSaved;
     return smu_UserTraining;
 }
示例#17
0
文件: Model1.cs 项目: matsmats/GitHub
 /// <summary>
 /// Create a new smu_UserPoints object.
 /// </summary>
 /// <param name="userPointsId">Initial value of the UserPointsId property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="points">Initial value of the Points property.</param>
 /// <param name="userTrainingId">Initial value of the UserTrainingId property.</param>
 /// <param name="trainingResult">Initial value of the TrainingResult property.</param>
 /// <param name="trainingId">Initial value of the TrainingId property.</param>
 public static smu_UserPoints Createsmu_UserPoints(global::System.Int32 userPointsId, global::System.DateTime createDate, global::System.Int32 points, global::System.Int32 userTrainingId, global::System.String trainingResult, global::System.Int32 trainingId)
 {
     smu_UserPoints smu_UserPoints = new smu_UserPoints();
     smu_UserPoints.UserPointsId = userPointsId;
     smu_UserPoints.CreateDate = createDate;
     smu_UserPoints.Points = points;
     smu_UserPoints.UserTrainingId = userTrainingId;
     smu_UserPoints.TrainingResult = trainingResult;
     smu_UserPoints.TrainingId = trainingId;
     return smu_UserPoints;
 }
示例#18
0
文件: Model1.cs 项目: matsmats/GitHub
 /// <summary>
 /// Create a new smu_UserMedal object.
 /// </summary>
 /// <param name="userMedalId">Initial value of the UserMedalId property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="medalId">Initial value of the MedalId property.</param>
 public static smu_UserMedal Createsmu_UserMedal(global::System.Int32 userMedalId, global::System.Int32 userId, global::System.Int32 medalId)
 {
     smu_UserMedal smu_UserMedal = new smu_UserMedal();
     smu_UserMedal.UserMedalId = userMedalId;
     smu_UserMedal.UserId = userId;
     smu_UserMedal.MedalId = medalId;
     return smu_UserMedal;
 }
示例#19
0
 /// <summary>Initializes static members of the <see cref="ComponentType"/> class.</summary>
 static ComponentType()
 {
     bit = 1;
     id = 0;
 }
示例#20
0
 /// <summary>
 /// Create a new user_group_menu object.
 /// </summary>
 /// <param name="ugm_id">Initial value of the ugm_id property.</param>
 /// <param name="user_group_id">Initial value of the user_group_id property.</param>
 /// <param name="menu_id">Initial value of the menu_id property.</param>
 /// <param name="created_date">Initial value of the created_date property.</param>
 /// <param name="created_by">Initial value of the created_by property.</param>
 /// <param name="updated_date">Initial value of the updated_date property.</param>
 /// <param name="updated_by">Initial value of the updated_by property.</param>
 public static user_group_menu Createuser_group_menu(global::System.Int32 ugm_id, global::System.Int32 user_group_id, global::System.Int32 menu_id, global::System.DateTime created_date, global::System.String created_by, global::System.DateTime updated_date, global::System.String updated_by)
 {
     user_group_menu user_group_menu = new user_group_menu();
     user_group_menu.ugm_id = ugm_id;
     user_group_menu.user_group_id = user_group_id;
     user_group_menu.menu_id = menu_id;
     user_group_menu.created_date = created_date;
     user_group_menu.created_by = created_by;
     user_group_menu.updated_date = updated_date;
     user_group_menu.updated_by = updated_by;
     return user_group_menu;
 }
            public override UIView GetViewForItem(iCarousel carousel, nint index, UIView view)
            {
                UILabel label = null;
                UIImageView imageView = null;

                if (view == null) {
                    // create new view if no view is available for recycling
                    imageView = new UIImageView (new CGRect (0, 0, 200.0f, 200.0f));
                    imageView.Image = UIImage.FromBundle ("page.png");
                    imageView.ContentMode = UIViewContentMode.Center;

                    label = new UILabel (imageView.Bounds);
                    label.BackgroundColor = UIColor.Clear;
                    label.TextAlignment = UITextAlignment.Center;
                    label.Font = label.Font.WithSize (50);
                    label.Tag = 1;
                    imageView.AddSubview (label);
                } else {
                    // get a reference to the label in the recycled view
                    imageView = (UIImageView)view;
                    label = (UILabel)view.ViewWithTag (1);
                }

                // set the values of the view
                label.Text = items [index].ToString ();

                return imageView;
            }
示例#22
0
 /// <summary>
 /// Create a new user_internal object.
 /// </summary>
 /// <param name="ui_id">Initial value of the ui_id property.</param>
 /// <param name="user_id">Initial value of the user_id property.</param>
 /// <param name="ui_nip">Initial value of the ui_nip property.</param>
 /// <param name="ui_jabatan">Initial value of the ui_jabatan property.</param>
 /// <param name="ui_grade">Initial value of the ui_grade property.</param>
 /// <param name="status">Initial value of the status property.</param>
 /// <param name="created_date">Initial value of the created_date property.</param>
 /// <param name="created_by">Initial value of the created_by property.</param>
 /// <param name="updated_date">Initial value of the updated_date property.</param>
 /// <param name="updated_by">Initial value of the updated_by property.</param>
 public static user_internal Createuser_internal(global::System.Int32 ui_id, global::System.Int32 user_id, global::System.String ui_nip, global::System.String ui_jabatan, global::System.String ui_grade, global::System.Int32 status, global::System.DateTime created_date, global::System.String created_by, global::System.DateTime updated_date, global::System.String updated_by)
 {
     user_internal user_internal = new user_internal();
     user_internal.ui_id = ui_id;
     user_internal.user_id = user_id;
     user_internal.ui_nip = ui_nip;
     user_internal.ui_jabatan = ui_jabatan;
     user_internal.ui_grade = ui_grade;
     user_internal.status = status;
     user_internal.created_date = created_date;
     user_internal.created_by = created_by;
     user_internal.updated_date = updated_date;
     user_internal.updated_by = updated_by;
     return user_internal;
 }
 public override string TitleForHeader (UITableView tableView, nint section)
 {
   return "Items List";
 }
示例#24
0
 /// <summary>Initializes static members of the <see cref="ComponentType"/> class.</summary>
 static ComponentType()
 {
     nextBit = 1;
     nextId = 0;
 }
		public override nint RowsInSection (UITableView tableview, nint section)
		{
			return ButtonDictionary.Count;
		}
示例#26
0
		public override nfloat GetHeightForHeader (UITableView tableView, nint section)
		{
			return 32;
		}
			public override nint RowsInSection (UITableView tableView, nint section)
			{
				if (section == 0) {
					return controller.authenticator.Fields.Count;
				}
				else {
					return 1;
				}
			}
 public override nint RowsInSection (UITableView tableview, nint section)
 {
   return controller.features.Count;
 }
		public override nint RowsInSection (UITableView tableview, nint section)
		{
			// TODO: return the actual number of items in the section
			return 1;
		}
示例#30
0
文件: Model1.cs 项目: matsmats/GitHub
 /// <summary>
 /// Create a new smu_MedalTraining object.
 /// </summary>
 /// <param name="medalTrainingId">Initial value of the MedalTrainingId property.</param>
 /// <param name="medalId">Initial value of the MedalId property.</param>
 /// <param name="trainingId">Initial value of the TrainingId property.</param>
 public static smu_MedalTraining Createsmu_MedalTraining(global::System.Int32 medalTrainingId, global::System.Int32 medalId, global::System.Int32 trainingId)
 {
     smu_MedalTraining smu_MedalTraining = new smu_MedalTraining();
     smu_MedalTraining.MedalTrainingId = medalTrainingId;
     smu_MedalTraining.MedalId = medalId;
     smu_MedalTraining.TrainingId = trainingId;
     return smu_MedalTraining;
 }