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


C# XtraForm.ShowDialog方法代码示例

本文整理汇总了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();
                }
            }
        }
开发者ID:USAID-DELIVER-PROJECT,项目名称:ethiopia-hcmis-warehouse,代码行数:44,代码来源:InternalItemMovements.cs

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

示例3: OpenDialog

 public void OpenDialog(XtraForm form)
 {
     form.ShowDialog();
 }
开发者ID:jyorin,项目名称:yinghe,代码行数:4,代码来源:MainFrame.cs

示例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 + "'");
                //
            }
        }
开发者ID:s7loves,项目名称:mypowerscgl,代码行数:40,代码来源:UCmLPRecord.cs

示例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();
            }
        }
开发者ID:hanksoft,项目名称:KillJD,代码行数:24,代码来源:FrmMain.cs


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