本文整理汇总了C#中DevExpress.ShowDialog方法的典型用法代码示例。如果您正苦于以下问题:C# DevExpress.ShowDialog方法的具体用法?C# DevExpress.ShowDialog怎么用?C# DevExpress.ShowDialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DevExpress
的用法示例。
在下文中一共展示了DevExpress.ShowDialog方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OpenWindowForm
/// <summary>
/// Open window form
/// </summary>
/// <param name="frm">XtraForm</param>
public static void OpenWindowForm(DevExpress.XtraEditors.XtraForm frm)
{
frm.FormBorderStyle = FormBorderStyle.FixedToolWindow;
frm.StartPosition = FormStartPosition.CenterScreen;
frm.WindowState = FormWindowState.Normal;
frm.ShowDialog();
}
示例2: ShowWindow
public static void ShowWindow(DevExpress.XtraEditors.XtraForm mainForm,
DevExpress.XtraEditors.XtraForm form, bool isWait, IFormat isFormat,
IPermission isPermision, bool ignoreCheckShowForm)
{
//if (FrameworkParams.wait != null) FrameworkParams.wait.Finish();
//if (isWait) FrameworkParams.wait = new WaitingMsg();
////Kích hoạt menu đang mở nếu đã mở
//foreach (Form f in mainForm.MdiChildren)
//{
// if (f.Text.Equals(form.Text) && f.Controls.Count == form.Controls.Count)
// {
// f.Activate();
// return;
// }
//}
if (ignoreCheckShowForm == false)
{
if (HelpPermission.CanShowForm(form) == false)
{
ApplyPermissionAction.getPermissionFormFail().ShowDialog();
form.Dispose();
return;
}
}
try
{
if (form.IsDisposed) return;
HelpUserLog.logOpenForm(form);
PLPlugin.HookShowAllPlugin(form);
form.FormClosed += new FormClosedEventHandler(form_FormClosed);
//form.Disposed += new EventHandler(form_Disposed);
form.MdiParent = mainForm;
form.MinimizeBox = false;
form.WindowState = FormWindowState.Maximized;
form.ShowInTaskbar = false;
form.Icon = FrameworkParams.ApplicationIcon;
ProtocolForm.pl_wrapper(ref form, isFormat, isPermision);
form.Shown += new EventHandler(wait);
//DEVEXPRESS
if (FrameworkParams.UsingRightClickForm) HelpXtraForm.PopupRightClickForm(form);
if (form is frmPermissionFail)
form.ShowDialog(FrameworkParams.MainForm);
else
form.Show();
}
catch (Exception ex)
{
PLException.AddException(ex);
PLMessageBox.ShowSystemErrorMessage(ex.ToString());
}
}
示例3: ShowDialog
public static void ShowDialog(DevExpress.XtraEditors.XtraForm mainForm,
DevExpress.XtraEditors.XtraForm form, bool isWaitForm, bool isModal,
bool ignoreCheckShowForm)
{
//if (FrameworkParams.wait != null) FrameworkParams.wait.Finish();
//if (isWaitForm) FrameworkParams.wait = new WaitingMsg();
//Kiểm tra quyền.
if (ignoreCheckShowForm == false)
{
if (HelpPermission.CanShowForm(form) == false)
{
ApplyPermissionAction.getPermissionFormFail().ShowDialog();
form.Dispose();
return;
}
}
try
{
if (form.IsDisposed) return;
HelpUserLog.logOpenForm(form);
PLPlugin.HookShowAllPlugin(form);
form.FormClosed += new FormClosedEventHandler(form_FormClosed);
ProtocolForm.pl_wrapper(ref form);
EventHandler showEvent = new EventHandler(wait);
form.Shown += showEvent;
//DEVEXPRESS
if (FrameworkParams.UsingRightClickForm) HelpXtraForm.PopupRightClickForm(form);
if (FrameworkParams.wait != null) FrameworkParams.wait.Finish();
if (form is frmPermissionFail)
{
form.ShowDialog(mainForm);
}
else
{
HelpXtraForm.SetModal(mainForm, form, isModal);
}
}
catch (Exception ex)
{
PLException.AddException(ex);
PLMessageBox.ShowSystemErrorMessage(ex.ToString());
}
}