コード例 #1
0
ファイル: List.ascx.cs プロジェクト: isatriya/kentico10
    /// <summary>
    /// Sets different values for the specified columns.
    /// </summary>
    /// <param name="uiTexts">New columns names</param>
    public void OverrideUITexts(UITexts uiTexts)
    {
        if (uiTexts == null)
        {
            throw new ArgumentNullException("uiTexts");
        }

        colRuleValue.Caption  = GetString(uiTexts.RuleValueCaptionResourceString);
        gridElem.ZeroRowsText = GetString(uiTexts.ZeroRowsTextResourceString);
        mRecalculationNeededResourceString           = uiTexts.RecalculationNeededResourceString;
        mRecalculationNotNeededTooltipResourceString = uiTexts.RecalculationNotNeededResourceString;
    }
コード例 #2
0
    /// <summary>
    /// Sets different values for the specified labels and tooltips of the UI form. This method has to be called on the Load phase!
    /// </summary>
    /// <param name="uiTexts">New texts</param>
    public void OverrideUITexts(UITexts uiTexts)
    {
        if (uiTexts == null)
        {
            throw new ArgumentNullException("uiTexts");
        }

        fDisplayName.ToolTipResourceString = uiTexts.DisplayNameTooltipResourceString;
        fValue.ResourceString        = uiTexts.ScoreValueLabelResourceString;
        fValue.ToolTipResourceString = uiTexts.ScoreValueTooltipResourceString;

        mRecalculationNeededResourceString = uiTexts.RecalculationNeededResourceString;
    }
コード例 #3
0
ファイル: ExecutableData.cs プロジェクト: Metibor/Ambermoon
        /// <summary>
        /// Loads all data. Should be positioned on the start
        /// if the second data hunk.
        /// </summary>
        /// <param name="dataReader"></param>
        public ExecutableData(IDataReader dataReader)
        {
            // TODO: For now we search the offset of the filelist manually
            //       until we decode all of the data.
            dataReader.Position = (int)dataReader.FindString("0Map_data.amb", 0) - 184;

            // TODO ...
            FileList   = new FileList(dataReader);
            WorldNames = new WorldNames(dataReader);
            Messages   = new Messages(dataReader);
            if (dataReader.ReadDword() != 0)
            {
                throw new AmbermoonException(ExceptionScope.Data, "Invalid executable data.");
            }
            AutomapNames   = new AutomapNames(dataReader);
            OptionNames    = new OptionNames(dataReader);
            SongNames      = new SongNames(dataReader);
            SpellTypeNames = new SpellTypeNames(dataReader);
            SpellNames     = new SpellNames(dataReader);
            LanguageNames  = new LanguageNames(dataReader);
            ClassNames     = new ClassNames(dataReader);
            RaceNames      = new RaceNames(dataReader);
            AbilityNames   = new AbilityNames(dataReader);
            AttributeNames = new AttributeNames(dataReader);
            AbilityNames.AddShortNames(dataReader);
            AttributeNames.AddShortNames(dataReader);
            ItemTypeNames = new ItemTypeNames(dataReader);
            AilmentNames  = new AilmentNames(dataReader);
            UITexts       = new UITexts(dataReader);

            // TODO: There is a bunch of binary data (gfx maybe?)

            // TODO: Then finally the item data comes ...

            // TODO ...
        }
コード例 #4
0
    /// <summary>
    /// Sets different values for the specified columns.
    /// </summary>
    /// <param name="uiTexts">New columns names</param>
    public void OverrideUITexts(UITexts uiTexts)
    {
        if (uiTexts == null)
        {
            throw new ArgumentNullException("uiTexts");
        }

        colRuleValue.Caption = GetString(uiTexts.RuleValueCaptionResourceString);
        gridElem.ZeroRowsText = GetString(uiTexts.ZeroRowsTextResourceString);
        mRecalculationNeededResourceString = uiTexts.RecalculationNeededResourceString;
        mRecalculationNotNeededTooltipResourceString = uiTexts.RecalculationNotNeededResourceString;
    }
    /// <summary>
    /// Sets different values for the specified labels and tooltips of the UI form. This method has to be called on the Load phase!
    /// </summary>
    /// <param name="uiTexts">New texts</param>
    public void OverrideUITexts(UITexts uiTexts)
    {
        if (uiTexts == null)
        {
            throw new ArgumentNullException("uiTexts");
        }

        fDisplayName.ToolTipResourceString = uiTexts.DisplayNameTooltipResourceString;
        fValue.ResourceString = uiTexts.ScoreValueLabelResourceString;
        fValue.ToolTipResourceString = uiTexts.ScoreValueTooltipResourceString;

        mRecalculationNeededResourceString = uiTexts.RecalculationNeededResourceString;
    }