コード例 #1
0
 public void ShowContent(string frmName, Type frmType)
 {
     //BaseForm bf = (BaseForm)(Activator.CreateInstance(frmType));
     BaseForm bf = new BaseForm();
     bf.MdiParent = this;
     bf.WindowState = FormWindowState.Maximized;
     bf.Show(this.dockPanel);
     bf.Activate();
     //bf.Show(this.dockPanel);
 }
コード例 #2
0
        private void OnOutlookBarItemClicked(OutlookBarBand band, OutlookBarItem item)
        {
            switch (item.Text)
            {
                #region 销售管理

                case "订单管理":
                    Portal.gc.MainDialog.ShowContent("订单管理", typeof(BaseForm));
                    break;
                case "客户管理":
                    Portal.gc.MainDialog.ShowContent("客户管理", typeof(BaseForm));
                    break;
                case "水票管理":
                    Portal.gc.MainDialog.ShowContent("水票管理", typeof(BaseForm));
                    break;
                case "套餐管理":
                    BaseForm dlg = new BaseForm();
                    dlg.ShowDialog();
                    break;
                case "来电记录":
                    Portal.gc.MainDialog.ShowContent("来电记录", typeof(BaseForm));
                    break;
                case "送货记录":
                    Portal.gc.MainDialog.ShowContent("送货记录", typeof(BaseForm));
                    break;

                #endregion

                #region 产品库存管理
                case "产品管理":
                    Portal.gc.MainDialog.ShowContent("产品管理", typeof(BaseForm));
                    break;
                case "库存管理":
                    Portal.gc.MainDialog.ShowContent("库存管理", typeof(BaseForm));
                    break;
                #endregion

                default:
                    break;
            }
        }