本文整理汇总了C#中Ferda.getProjectInformation方法的典型用法代码示例。如果您正苦于以下问题:C# Ferda.getProjectInformation方法的具体用法?C# Ferda.getProjectInformation怎么用?C# Ferda.getProjectInformation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ferda
的用法示例。
在下文中一共展示了Ferda.getProjectInformation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: run
/// <summary>
/// IceRUn
/// </summary>
/// <param name="boxModuleParam">boxmoduleparams</param>
/// <param name="localePrefs">localeprefs</param>
/// <param name="manager">Manager prx</param>
/// <param name="current__">Ice context</param>
public override void run(Ferda.Modules.BoxModulePrx boxModuleParam, string[] localePrefs, Ferda.ModulesManager.ManagersEnginePrx manager, Ice.Current current__)
{
string locale;
try
{
locale = localePrefs[0];
localizationString = locale;
locale = "Ferda.FrontEnd.AddIns.ShowTable.Localization_" + locale;
resManager = new ResourceManager(locale, Assembly.GetExecutingAssembly());
}
catch
{
}
Ferda.Modules.Boxes.DataMiningCommon.DataMatrix.DataMatrixFunctionsPrx prx =
Ferda.Modules.Boxes.DataMiningCommon.DataMatrix.DataMatrixFunctionsPrxHelper.checkedCast(boxModuleParam.getFunctions());
try
{
string label = manager.getProjectInformation().getUserLabel(Ice.Util.identityToString(boxModuleParam.ice_getIdentity()));
Ferda.FrontEnd.AddIns.ShowTable.ShowTableControl control = new ShowTableControl(localePrefs, prx.getColumnsNames(), prx.getDataMatrixInfo(),ownerOfAddIn);
this.ownerOfAddIn.ShowDockableControl(control, resManager.GetString("Show") + " " + label);
}
catch (Ferda.Modules.NoConnectionInSocketError)
{
MessageBox.Show(resManager.GetString("BoxNotConnected"), resManager.GetString("Error"),
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
catch (Ferda.Modules.BadParamsError ex)
{
if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbConnectionString)
{
MessageBox.Show(resManager.GetString("BadConnectionString"), resManager.GetString("Error"),
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
else if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbTable)
{
MessageBox.Show(resManager.GetString("NoDataMatrix"), resManager.GetString("Error"),
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
}