本文整理汇总了C#中XtraForm.ShowDialog方法的典型用法代码示例。如果您正苦于以下问题:C# XtraForm.ShowDialog方法的具体用法?C# XtraForm.ShowDialog怎么用?C# XtraForm.ShowDialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XtraForm
的用法示例。
在下文中一共展示了XtraForm.ShowDialog方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: repositoryItemButtonEdit1_DoubleClick
private void repositoryItemButtonEdit1_DoubleClick(object sender, EventArgs e)
{
Pallet pallet = new Pallet();
PalletLocation pl = new PalletLocation();
if (gridItemMovementView.FocusedValue != null )
{
prev = gridItemMovementView.FocusedValue;
pl.LoadByPrimaryKey(Convert.ToInt32(gridItemMovementView.FocusedValue));
if (!pl.IsColumnNull("PalletID"))
{
pallet.GetAllItemsInPallet(pl.PalletID);
gridControl2.DataSource = pallet.DefaultView;
pallet.GetAllItemsInPalletSKUTotal(pl.PalletID);
Label l = new Label();
l.Dock = DockStyle.Bottom;
XtraForm f = new XtraForm();
//gridControl2.Parent = null;
f.ShowInTaskbar = false;
f.Width = gridControl2.Width;
if (pallet.RowCount > 0 && !pallet.IsColumnNull("Total"))
{
l.Text = string.Format("Total SKU: {0}", pallet.GetColumn("Total").ToString());
}
else
{
l.Text = "Total SKU: 0";
}
f.Controls.Add(l);
pallet.LoadByPrimaryKey(pl.PalletID);
if (!pallet.IsColumnNull("PalletNo"))
{
f.Text = String.Format("Pallet Number: {0}", pallet.PalletNo);
}
f.Controls.Add(gridControl2);
f.StartPosition = FormStartPosition.CenterScreen;
f.ShowDialog();
}
}
}
示例2: 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();
}
}
示例3: OpenDialog
public void OpenDialog(XtraForm form)
{
form.ShowDialog();
}
示例4: btBJ_ItemClick
private void btBJ_ItemClick(object sender, ItemClickEventArgs e)
{
if (gridView1.FocusedRowHandle == -1) return;
DataRow row = gridView1.GetDataRow(gridView1.FocusedRowHandle);
LP_Record obj = Ebada.Core.ConvertHelper.RowToObject<LP_Record>(row);
//
XtraForm dlg = new XtraForm(); dlg.Text = "设置标记";
dlg.StartPosition = FormStartPosition.CenterScreen;
dlg.Size = new Size(200, 150);
DevExpress.XtraEditors.ComboBox box = new DevExpress.XtraEditors.ComboBox();
box.Location = new Point(20, 20);
box.Width = 150;
box.Parent = dlg;
box.Properties.Items.Add("合格");
box.Properties.Items.Add("不合格");
box.Properties.Items.Add("作废");
box.SelectedIndex = 0;
SimpleButton button1 = new SimpleButton();
button1.Text = "确认";
button1.Parent = dlg;
button1.Location = new Point((dlg.Width / 2 - button1.Width) / 2, dlg.Height - button1.Height - 60);
button1.DialogResult = DialogResult.OK;
SimpleButton button2 = new SimpleButton();
button2.Text = "关闭";
button2.Parent = dlg;
button2.Location = new Point(button1.Right + 5, button1.Top);
button2.DialogResult = DialogResult.Cancel;
if (dlg.ShowDialog() == DialogResult.OK)
{
//Dictionary<string, object> dic = new Dictionary<string, object>();
//dic.Add("ID", obj.ID);
//dic.Add("bj", box.EditValue.ToString());
//Client.ClientHelper.PlatformSqlMap.Update("UpdateLP_RecordByHash", dic);
//Hashtable ht =new Hashtable();ht.Add("ID",obj.ID);ht.Add("bj",box.EditValue.ToString());
//Client.ClientHelper.PlatformSqlMap.Update("UpdateLP_RecordByHash", ht);
Client.ClientHelper.PlatformSqlMap.Update("Update", "update lp_record set bj='" + box.EditValue.ToString() + "' where id='" + obj.ID + "'");
//
}
}
示例5: ShowPopForm
/// <summary>
/// 显示弹出窗体
/// </summary>
/// <param name="ucTmp"></param>
/// <param name="title"></param>
private void ShowPopForm(UserControl ucTmp, string title)
{
if (ucTmp != null && !ucTmp.IsDisposed)
{
ucTmp.Dock = DockStyle.Fill;
Form frm = new XtraForm();
frm.Text = title;
frm.ShowInTaskbar = false;
frm.MinimizeBox = false;
frm.MaximizeBox = false;
frm.Height = ucTmp.Size.Height + 30;
frm.Width = ucTmp.Size.Width + 20;
frm.StartPosition = FormStartPosition.CenterParent;
frm.Icon = Properties.Resources.frm;
frm.Controls.Add(ucTmp);
frm.ShowDialog();
}
}