当前位置: 首页>>代码示例>>C#>>正文


C# DevExpress.ShowDialog方法代码示例

本文整理汇总了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();
 }
开发者ID:cuongpv88,项目名称:work,代码行数:11,代码来源:FormHelper.cs

示例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());
            }
        }
开发者ID:khanhdtn,项目名称:my-fw-win,代码行数:58,代码来源:HelpProtocolForm.cs

示例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());
            }
        }
开发者ID:khanhdtn,项目名称:my-fw-win,代码行数:52,代码来源:HelpProtocolForm.cs


注:本文中的DevExpress.ShowDialog方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。