本文整理汇总了C#中RefreshedTypes类的典型用法代码示例。如果您正苦于以下问题:C# RefreshedTypes类的具体用法?C# RefreshedTypes怎么用?C# RefreshedTypes使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RefreshedTypes类属于命名空间,在下文中一共展示了RefreshedTypes类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RefreshUI
public void RefreshUI(RefreshedTypes type)
{
if (OnUIRefreshed != null)
{
UIRefreshedEventArgs args = new UIRefreshedEventArgs();
args.RefreshedType = type;
OnUIRefreshed(this, args);
}
}
示例2: RefreshFormType
/// <summary>
/// 设置当前页面状态
/// </summary>
private void RefreshFormType(FormTypes formtype, RefreshedTypes refreshedType)
{
EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
entBrowser.FormType = formtype;
types = formtype;
FormTypesAction = formtype;
RefreshUI(refreshedType);
RefreshUI(RefreshedTypes.All);
}
示例3: RefreshUI
public void RefreshUI(RefreshedTypes type)
{
if (type == RefreshedTypes.ShowProgressBar)
{
ShowProgressBasePage();
}
if (type == RefreshedTypes.HideProgressBar)
{
HideProgressBasePage();
}
}
示例4: DoAction
public void DoAction(string actionType)
{
switch (actionType)
{
case "0":
RefreshType = RefreshedTypes.All;
AddToClose();
break;
case "1":
RefreshType = RefreshedTypes.CloseAndReloadData;
AddToClose();
break;
}
}
示例5: DoAction
public void DoAction(string actionType)
{
//RefreshUI(RefreshedTypes.ShowProgressBar);
switch (actionType)
{
case "0": saveType = RefreshedTypes.All;
if (vehicleInfo != null)
UpdateInfo(vehicleInfo);
break;
case "1":
saveType = RefreshedTypes.CloseAndReloadData;
if (vehicleInfo != null)
UpdateInfo(vehicleInfo);
break;
}
}
示例6: Upd_ESurveyAppCompleted
void Upd_ESurveyAppCompleted(object sender, Upd_ESurveyAppCompletedEventArgs e)
{
RefreshUI(RefreshedTypes.HideProgressBar);
if (e.Error != null && e.Error.Message != "")
{
Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
return;
}
if (e.Result > 0)
{
if (e.UserState.ToString() == "Edit")
{
Utility.ShowMessageBox("UPDATE", isSubmitFlow, true);
if (isSubmitFlow)
saveType = RefreshedTypes.CloseAndReloadData;
RefreshUI(saveType);
}
else if (e.UserState.ToString() == "Audit")
{
Utility.ShowMessageBox("SUCCESSAUDIT", isSubmitFlow, true);//审核成功
RefreshUI(RefreshedTypes.CloseAndReloadData);
}
else if (e.UserState.ToString() == "Submit")
{
Utility.ShowMessageBox("SUCCESSSUBMITAUDIT", isSubmitFlow, true);//提交成功
RefreshUI(RefreshedTypes.CloseAndReloadData);
}
RefreshUI(RefreshedTypes.All);
}
else
{
if (e.UserState.ToString() == "Edit")
{
Utility.ShowMessageBox("UPDATE", isSubmitFlow, false);//修改失败
}
else
{
Utility.ShowMessageBox("AUDITFAILURE", isSubmitFlow, false);//提交审核失败
}
}
}
示例7: DoAction
public void DoAction(string actionType)
{
switch (actionType)
{
case "0":
saveType = RefreshedTypes.LeftMenu;
Save();
break;
//case "2":
// AddIssuanObj();
// break;
//case "1":
// ShowPreviewSendDoc();
// break;
}
}
示例8: Upd_ESurveyCompleted
// //先更新方案成功后, 添加 和修改题目、答案
void Upd_ESurveyCompleted(object sender, Upd_ESurveyCompletedEventArgs e)
{
RefreshUI(RefreshedTypes.HideProgressBar);
if (e.Result > 0)
{
Utility.ShowMessageBox("UPDATE", isFlow, true);
if (isFlow)
saveType = RefreshedTypes.CloseAndReloadData;
foreach (V_EmployeeSurveySubject v in _osub) //新增的数据保存后再执行删除操作时 判断
v.IsAdd = false;
RefreshUI(saveType);
}
else
{
Utility.ShowMessageBox("UPDATE", isFlow, false);
}
}
示例9: DoAction
public void DoAction(string actionType)
{
switch (actionType)
{
case "0":
refreshType = RefreshedTypes.All;
Save();
break;
case "1":
refreshType = RefreshedTypes.CloseAndReloadData;
Save();
break;
case "2":
Select();
break;
case "3":
refreshType = RefreshedTypes.CloseAndReloadData;
SumbitAudit();
break;
case "4"://入住操作
Save();
break;
case "5"://退房
Save();
break;
}
}
示例10: DoAction
public void DoAction(string actionType)
{
switch (actionType)
{
case "0":
Save();
break;
case "1":
refreshType = RefreshedTypes.CloseAndReloadData;
Cancel();
break;
}
}
示例11: DoAction
public void DoAction(string actionType)
{
switch (actionType)
{
case "0":
saveType = RefreshedTypes.All;
Save();
break;
case "1":
Save();
break;
case "2":
UploadFilesFunction();
break;
}
}
示例12: Close
public void Close()
{
saveType = "1";
RefreshType = RefreshedTypes.CloseAndReloadData;
RefreshUI(RefreshedTypes.All);
}
示例13: DoAction
public void DoAction(string actionType)
{
if (actionType.ToInt32() == 2)
sel_vUseApp();
else if (actionType.ToInt32() == 3)
sel_vDipatch();
else
{
if (!Check()) return;
RefreshUI(RefreshedTypes.ShowProgressBar);
switch (actionType)
{
case "0":
isSubmitFlow = false;
saveType = RefreshedTypes.All;
Save();
break;
case "1":
saveType = RefreshedTypes.CloseAndReloadData;
Save();
break;
}
}
}
示例14: client_AddBorrowApplyMasterAndDetailCompleted
//增加借款数据后的完成事件
void client_AddBorrowApplyMasterAndDetailCompleted(object sender, AddBorrowApplyMasterAndDetailCompletedEventArgs e)
{
try
{
RefreshUI(RefreshedTypes.HideProgressBar);
if (e.Error == null)
{
if (e.Result)
{
isAdd = false;
Utility.ShowMessageBox("ADD", isSubmitFlow, true);
Utility.ShowMessageBox("ADD", isSubmitFlow, true);
if (isSubmitFlow)
{
saveType = RefreshedTypes.CloseAndReloadData;
RefreshUI(saveType);
return;
}
//ctrFile.FormID = BorrowMasterEntity.BORROWAPPLYMASTERID;
//ctrFile.Save();
RefreshFormType(FormTypes.Edit, RefreshedTypes.AuditInfo);
if (needsubmit == true) //add zl //如果点击提交按钮则调用引擎提交审核
{
EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
entBrowser.ManualSubmit();
IsEnabledByFormtype();
SetForms();
needsubmit = false;
}
}
else
{
Utility.ShowMessageBox("ADD", isSubmitFlow, false);
}
}
else
{
Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
return;
}
}
catch (Exception ex)
{
Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
}
}
示例15: DocDistrbuteInfoUpdateCompleted
//发布完成事件
void DocDistrbuteInfoUpdateCompleted(object sender, DocDistrbuteInfoUpdateCompletedEventArgs e)
{
if (!e.Cancelled)
{
if (e.Result)
{
distributeLists.Clear();
Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("WERESUCCESSFULLYRELEASED"));
if (isSubmitFlow)
saveType = RefreshedTypes.CloseAndReloadData;
}
else
Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr("PUBLISHEDINVESTIGATIONSFAILED"));
}
else
Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr("PUBLISHEDINVESTIGATIONSFAILED"));
RefreshUI(saveType);
}