本文整理汇总了C#中SMT.SaaS.FrameworkUI.UIRefreshedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# UIRefreshedEventArgs类的具体用法?C# UIRefreshedEventArgs怎么用?C# UIRefreshedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UIRefreshedEventArgs类属于SMT.SaaS.FrameworkUI命名空间,在下文中一共展示了UIRefreshedEventArgs类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RefreshUI
public void RefreshUI(RefreshedTypes type)
{
if (OnUIRefreshed != null)
{
UIRefreshedEventArgs args = new UIRefreshedEventArgs();
args.RefreshedType = type;
OnUIRefreshed(this, args);
}
}
示例2: editor_OnUIRefreshed
void editor_OnUIRefreshed(object sender, UIRefreshedEventArgs args)
{
if (args != null)
{
//if (args.RefreshedType == "1")
//{
// this.Close();
// ReloadData();
//}
//else if (args.RefreshedType == "0")
//{
// this.Close();
//}
switch (args.RefreshedType)
{
case RefreshedTypes.All:
GenerateLeftMenu();
GenerateToolBar();
GenerateEntityTitle();
ReloadData();
break;
case RefreshedTypes.EntityInfo:
GenerateEntityTitle();
break;
case RefreshedTypes.LeftMenu:
GenerateLeftMenu();
break;
case RefreshedTypes.ToolBar:
GenerateToolBar();
break;
case RefreshedTypes.Close:
this.Close();
break;
case RefreshedTypes.CloseAndReloadData:
this.Close();
ReloadData();
break;
case RefreshedTypes.AuditInfo:
BindAudit();
// 1s 冉龙军
//beyond 隐藏kpi
//BindKPI();
// 1e
break;
case RefreshedTypes.ProgressBar:
ShowProgressBar();
break;
case RefreshedTypes.ShowProgressBar:
ShowProgressBars();
break;
case RefreshedTypes.HideProgressBar:
HideProgressBars();
break;
//case RefreshedTypes.UploadBar:
// ShowUploadBar();
// break;
case RefreshedTypes.HideAudit://隐藏审核控件
BindPnlAudit();
break;
case RefreshedTypes.ShowAudit:
ShowPnlAudit();//显示审核控件
break;
}
}
}
示例3: TravelapplicationForm_OnUIRefreshed
void TravelapplicationForm_OnUIRefreshed(object sender, UIRefreshedEventArgs args)
{
this.RefreshUI(args.RefreshedType);
}
示例4: Refresh
/// <summary>
/// 负责刷新
/// </summary>
/// <param name="type"></param>
private void Refresh(RefreshedTypes type)
{
UIRefreshedEventArgs args = new UIRefreshedEventArgs();
args.RefreshedType = type;
OnUIRefreshed(this, args);
}