本文整理汇总了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();
}
}
示例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;
}
示例3: ChangeFormVisibility
private void ChangeFormVisibility(XtraForm form) {
if (form.Visible)
form.Hide();
else
form.Show();
}
示例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();
}
}
示例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();
}
}
示例6: ChangeFormVisibility
private void ChangeFormVisibility(XtraForm form) {
if (form.IsDisposed)
return;
if (form.Visible)
form.Hide();
else
form.Show();
}