コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (DropFilesHint != null)
            {
                DropFilesHint.Dispose();
                DropFilesHint = null;
            }

            if (ItemsCount != null)
            {
                ItemsCount.Dispose();
                ItemsCount = null;
            }

            if (RomsArrayController != null)
            {
                RomsArrayController.Dispose();
                RomsArrayController = null;
            }

            if (SelectedItemsCount != null)
            {
                SelectedItemsCount.Dispose();
                SelectedItemsCount = null;
            }
        }
コード例 #2
0
    private void Start()
    {
        IT = this;

        // When the game was under tests, the initial quantities of the bomb started at 100.
        UpdateText(t_plasma, PlasmaBombs);
        UpdateText(t_divisible, DivisibleBombs);
        UpdateText(t_shield, Shields);
        UpdateText(t_freezer, Freezers);
    }
コード例 #3
0
        protected int GetCollectionHash()
        {
            var hash = GetLinkBag().GetHashCode();

            unchecked // Overflow is fine, just wrap
            {
                hash = hash * 23 + (PageSize == null ? 587 : PageSize.GetHashCode());
                hash = hash * 23 + (CurrentPage == null ? 587 : CurrentPage.GetHashCode());
                hash = hash * 23 + (ItemsCount == null ? 587 : ItemsCount.GetHashCode());
            }
            return(hash);
        }
コード例 #4
0
        public override void Draw(SpriteBatch spriteBatch, SpriteFont font)
        {
            if (OnFocus)
            {
                spriteBatch.Draw(_backgroundTexture, Position, new Color(183, 183, 183));
            }
            if (ItemStack == null || Item == null)
            {
                return;
            }

            spriteBatch.Draw(Item.IconTexture, new Rectangle(Position.X + 1, Position.Y + 1, Position.Width - 2, Position.Height - 2), Color.White);
            if (ItemsCount > 1)
            {
                TextDrawHeleper.DrawText(spriteBatch, font, ItemsCount.ToString(), Color.Black, Color.White, 1, new Vector2(Position.X + 27, Position.Y + 20));
            }
        }
コード例 #5
0
        public override void Draw(SpriteBatch spriteBatch, SpriteFont font)
        {
            if (Item == null || ItemsCount == 0)
            {
                return;
            }

            var mouseState = Mouse.GetState();
            var mousePoint = new Vector2(mouseState.X, mouseState.Y);
            var rect       = new Rectangle((int)mousePoint.X - 20, (int)mousePoint.Y - 20, 40, 40);

            spriteBatch.Draw(Item.IconTexture, rect, Color.White);

            if (ItemsCount > 1)
            {
                TextDrawHeleper.DrawText(spriteBatch, font, ItemsCount.ToString(), Color.Black, Color.White, 1,
                                         new Vector2(rect.X + 26, rect.Y + 19));
            }
        }
コード例 #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     cartItems.Text = ItemsCount.ToString();
     cartCost.Text  = ItemsCost.ToString();
 }
コード例 #7
0
ファイル: Users.cs プロジェクト: AntiquePendulum/CoreQiita
 /// <summary>
 /// すべての情報を文字列配列で取得
 /// </summary>
 /// <returns>ユーザデータ</returns>
 public new string[] GetAll()
 {
     string[] vs = { Description,                     FacebookId, FolloweesCount.ToString(), FollowersCount.ToString(), GitHubName,             Id,              ItemsCount.ToString(),
                     LinkedInId,                      Location,   Name,                      Organization,              PermanentId.ToString(), ProfileImageUrl, TwitterName,          WebsiteUrl,ImageUploadLimit.ToString(),
                     ImageUploadRemaining.ToString(), TeamOnly.ToString() };
     return(vs);
 }
コード例 #8
0
ファイル: Users.cs プロジェクト: AntiquePendulum/CoreQiita
 /// <summary>
 /// すべての情報を文字列配列で取得します
 /// </summary>
 /// <returns>全データ</returns>
 public string[] GetAll()
 {
     string[] vs = { Description, FacebookId, FolloweesCount.ToString(), FollowersCount.ToString(), GitHubName,             Id,              ItemsCount.ToString(),
                     LinkedInId,  Location,   Name,                      Organization,              PermanentId.ToString(), ProfileImageUrl, TwitterName, WebsiteUrl };
     return(vs);
 }
コード例 #9
0
 private void OnDestroy()
 {
     IT = null;
 }