本文整理汇总了C#中IAppWindow.saveLocal方法的典型用法代码示例。如果您正苦于以下问题:C# IAppWindow.saveLocal方法的具体用法?C# IAppWindow.saveLocal怎么用?C# IAppWindow.saveLocal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IAppWindow
的用法示例。
在下文中一共展示了IAppWindow.saveLocal方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: formClosingEventHandler
public void formClosingEventHandler(ref object sender, ref FormClosingEventArgs e, IAppWindow win, string appId, bool AllowCancel)
{
bool isOwnedByDDI = _portHandlers[0].getAdtRecord().IsOwnedByDDI;
if ((_state == ClosingState.NoClosing) ||
((_state == ClosingState.ClosingResources) && isOwnedByDDI)
)
{
e.Cancel = true;
if (win.AppDataChanged)
{
switch (DialogResult.No)
{
case DialogResult.Yes:
win.saveLocal();
if (!isOwnedByDDI)
{
break;
}
ClosingJobs(win);
return;
case DialogResult.No:
if (!isOwnedByDDI)
{
break;
}
ClosingJobs(win);
return;
case DialogResult.Cancel:
WDSApplicationManager.instance().AppCloseAllowed = false;
return;
}
}
if ((e.CloseReason == CloseReason.MdiFormClosing) || (e.CloseReason == CloseReason.ApplicationExitCall))
{
GlobalServices.WarnMsg(appId, "Sending TerminateWDS Request to WDS Core");
WDSApplicationManager.instance().terminateWDS();
}
else if (_portHandlers[0].getAdtRecord().IsOwnedByDDI)
ClosingJobs(win);
else
WDSApplicationManager.instance().closeApplications(_portHandlers[0].getAdtRecord());
}
}