Table of Contents

Class MyRes

Namespace: FastReport.Olap.Utils
Assembly: FastCube.Core.dll

Used to access to resource IDs inside the specified branch.

public class MyRes

Inheritance

object ← MyRes

Remarks

Using the FastReport.Olap.Utils.Res.Get(System.String) method, you have to specify the full path to your resource. Using this class, you can shorten the path:

// using the Res.Get method
miKeepTogether = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,KeepTogether"));
miResetPageNumber = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,ResetPageNumber"));
miRepeatOnEveryPage = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,RepeatOnEveryPage"));

// using MyRes.Get method
MyRes res = new MyRes("ComponentMenu,HeaderBand");
miKeepTogether = new ToolStripMenuItem(res.Get("KeepTogether"));
miResetPageNumber = new ToolStripMenuItem(res.Get("ResetPageNumber"));
miRepeatOnEveryPage = new ToolStripMenuItem(res.Get("RepeatOnEveryPage"));

Constructors

MyRes(string)

Initializes a new instance of the FastReport.Olap.Utils.MyRes class with spevified branch.

public MyRes(string category)

Parameters

category string

The main resource branch.

Methods

Get(string)

Gets a string with specified ID inside the main branch.

public string Get(string id)

Parameters

id string

The resource ID.

Returns

string

The localized value.