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


C# XtraForm.Show方法代码示例

本文整理汇总了C#中XtraForm.Show方法的典型用法代码示例。如果您正苦于以下问题:C# XtraForm.Show方法的具体用法?C# XtraForm.Show怎么用?C# XtraForm.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XtraForm的用法示例。


在下文中一共展示了XtraForm.Show方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OpenForm

 /// <summary>
 /// 打开指定的窗口
 /// </summary>
 /// <param name="winForm"></param>
 public void OpenForm(XtraForm winForm)
 {
     if (!FormAlreadyOpen(winForm.GetType()))
     {
         winForm.MdiParent = this;
         winForm.Show();
     }
 }
开发者ID:hmxiaoxiao,项目名称:haimenlg,代码行数:12,代码来源:DevMain.cs

示例2: OpenForm

        /// <summary>
        /// 
        /// </summary>
        /// <param name="frm"></param>
        /// <param name="xTabControl"></param>
        private void OpenForm(XtraForm frm, DevExpress.XtraTab.XtraTabControl xTabControl)
        {
            foreach (DevExpress.XtraTab.XtraTabPage tab in xtraTabControlMain.TabPages)
            {
                if (tab.Text == frm.Text)
                {
                    xtraTabControlMain.SelectedTabPage = tab;
                    return;
                }
            }

            var xTabPage = new DevExpress.XtraTab.XtraTabPage { Text = frm.Text };
            xTabControl.TabPages.Add(xTabPage);
            xTabControl.SelectedTabPage = xTabPage;
            frm.WindowState = FormWindowState.Maximized;
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.TopLevel = false;
            frm.Parent = xTabPage;
            frm.Show();
            frm.Dock = DockStyle.Fill;
        }
开发者ID:cuongpv88,项目名称:work,代码行数:26,代码来源:FormMain.cs

示例3: ChangeFormVisibility

 private void ChangeFormVisibility(XtraForm form) {
     if (form.Visible)
         form.Hide();
     else
         form.Show();
 }
开发者ID:Raoulwe,项目名称:eXpand,代码行数:6,代码来源:NotifyIconController.cs

示例4: SetModal

        /// <summary>Đặt các thuộc tính để màn hình bình thường trở thành
        /// màn hình dạng MODAL
        /// </summary>
        public static void SetModal(XtraForm mainForm, XtraForm form, 
            bool IsModal, bool IsInTaskbar, bool IsFixForm)
        {
            if (IsFixForm == true) SetFix(form);
            else SetResize(form);

            form.ShowInTaskbar = IsInTaskbar;
            form.StartPosition = FormStartPosition.CenterScreen;
            form.Icon = FrameworkParams.ApplicationIcon;
            form.Text = HelpApplication.getTitleForm(form.Text);
            if (IsModal)
            {
                if (mainForm != null)
                {
                    if (mainForm.IsDisposed == false)
                    {
                        form.ShowDialog(mainForm);
                    }
                    else
                    {
                        form.Tag = "NO";
                    }
                }
                else form.Show();
            }
            else
            {
                if (mainForm != null) form.Owner = mainForm;
                form.Show();
            }
        }
开发者ID:khanhdtn,项目名称:my-fw-win,代码行数:34,代码来源:HelpXtraForm.cs

示例5: OpenForm

 public static void OpenForm(frmMain index, XtraUserControl uc, string vnTitle, string enTitle, XtraTabbedMdiManager tabMain)
 {
     string languageID = new Configuration().Language;
     bool found = false;
     foreach (XtraForm frm in index.MdiChildren)
     {
         if (frm.Text.Equals((languageID.Equals("vi-VN")) ? vnTitle : enTitle))
         {
             found = true;
             break;
         }
     }
     if (found)
     {
         foreach (XtraMdiTabPage tab in tabMain.Pages)
         {
             if (tab.Text.Equals((languageID.Equals("vi-VN")) ? vnTitle : enTitle))
             {
                 tabMain.SelectedPage = tab;
                 break;
             }
         }
     }
     else
     {
         XtraForm frm = new XtraForm();
         frm.Text = (languageID.Equals("vi-VN")) ? vnTitle : enTitle;
         frm.MdiParent = index;
         uc.Dock = DockStyle.Fill;
         frm.Controls.Clear();
         frm.Controls.Add(uc);
         frm.Show();
     }
 }
开发者ID:penguinsoftware,项目名称:iPOS,代码行数:34,代码来源:Common.cs

示例6: ChangeFormVisibility

 private void ChangeFormVisibility(XtraForm form) {
     if (form.IsDisposed)
         return;
     if (form.Visible)
         form.Hide();
     else
         form.Show();
 }
开发者ID:aries544,项目名称:eXpand,代码行数:8,代码来源:NotifyIconController.cs


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