本文整理汇总了C#中IWorkspace.GetWorkspaceValue方法的典型用法代码示例。如果您正苦于以下问题:C# IWorkspace.GetWorkspaceValue方法的具体用法?C# IWorkspace.GetWorkspaceValue怎么用?C# IWorkspace.GetWorkspaceValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IWorkspace
的用法示例。
在下文中一共展示了IWorkspace.GetWorkspaceValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SynchronizeWithWorkspace
public static void SynchronizeWithWorkspace(this IWorkspace workspace, IWorkspace newWorkspaceData)
{
Argument.IsNotNull(() => workspace);
Argument.IsNotNull(() => newWorkspaceData);
workspace.ClearWorkspaceValues();
foreach (var workspaceValueName in newWorkspaceData.GetAllWorkspaceValueNames())
{
var workspaceValue = newWorkspaceData.GetWorkspaceValue<object>(workspaceValueName, null);
workspace.SetWorkspaceValue(workspaceValueName, workspaceValue);
}
}
示例2: ApplyWorkspace
public override void ApplyWorkspace(IWorkspace workspace)
{
Argument.IsNotNull(() => workspace);
_filterService.Filter.ShowDebug = workspace.GetWorkspaceValue(Settings.Workspace.Filter.ShowDebug, Settings.Workspace.Filter.ShowDebugDefaultValue);
_filterService.Filter.ShowError = workspace.GetWorkspaceValue(Settings.Workspace.Filter.ShowError, Settings.Workspace.Filter.ShowErrorDefaultValue);
_filterService.Filter.ShowInfo = workspace.GetWorkspaceValue(Settings.Workspace.Filter.ShowInfo, Settings.Workspace.Filter.ShowInfoDefaultValue);
_filterService.Filter.ShowWarning = workspace.GetWorkspaceValue(Settings.Workspace.Filter.ShowWarning, Settings.Workspace.Filter.ShowWarningDefaultValue);
_filterService.Filter.IsUseDateRange = workspace.GetWorkspaceValue(Settings.Workspace.Filter.IsUseDateRange, Settings.Workspace.Filter.IsUseDateRangeDefaultValue);
_filterService.Filter.StartDate = workspace.GetWorkspaceValue(Settings.Workspace.Filter.StartDate, DateTime.Today);
_filterService.Filter.EndDate = workspace.GetWorkspaceValue(Settings.Workspace.Filter.EndDate, DateTime.Today);
}