/// <summary> /// Open "Program options" form window. /// </summary> public static void FormShowOptions() { using (FrmOptions OptsFrm = new FrmOptions()) { OptsFrm.ShowDialog(); } }
public void Teardown() { _optionsForm.Dispose(); while (_optionsForm.Disposing) { ; } _optionsForm = null; }
private void DesignerToolStripMenuItemClick(object sender, EventArgs e) { if (options == null) { options = new FrmOptions(); options.Show(dockPanel, DockState.DockLeft); } else { options.Show(dockPanel, DockState.DockLeft); } }
private void mnuMainExtrasOptions_Click(object sender, EventArgs e) { IOptionPanel[] optionPanels = { new OptionPanelGeneral(), new OptionPanelFontColor(), new OptionPanelScriptEditor() }; using (FrmOptions optionsDlg = new FrmOptions(optionPanels)) { if (optionsDlg.ShowDialog(this) == DialogResult.OK) { using (new WaitCursor(Cursors.Default, Settings.Default.WaitCursorTimeout)) { foreach (IOptionPanel optionPanel in optionPanels) { optionPanel.SaveSettings(); } foreach (IDockContent dockContent in mainDockPanel.Documents) { ILogContainer currentDocument = dockContent as ILogContainer; if (currentDocument != null) { // Update the UI refresh value for all logging windows. currentDocument.UpdateTimerInterval( Settings.Default.UiRefreshIntervalMs); } } // Force a repaint of all UI elements. Refresh(); } } } }
Form NewForm(string tag) { Form frm = null; switch (tag) { case "本机设置": FrmOptions frmOptions = new FrmOptions(); frmOptions.ShowDialog(); break; #region 收货管理 case "到货登记": frm = new FrmVehicle(); break; case "送货牌列表": frm = new FrmListCard(); break; case "托盘状态表": frm = new FrmContainerState(); break; case "收货单管理": frm = new FrmAsnManage(); break; case "越库收货": frm = new FrmCrossInstore(); break; case "越库收货确认": frm = new FrmCrossInstoreConfirm(); break; case "退货单管理": //Add by ZXQ 20150525 frm = new FrmReturnManage(); break; #endregion #region 销货管理 case "出库单管理": frm = new FrmSOManage(); break; case "订单排序": frm = new FrmSOSort(); break; case "订单排序(地图)": frm = new Nodes.Outstore.FrmSOSortMap(); break; case "订单排序查询": frm = new FrmSOSortMapQuery(); break; case "拣货计划": frm = new FrmPickPlans(); break; case "拣货任务管理": frm = new FrmPickTaskManager(); break; case "物流箱状态表": frm = new FrmSOLPNState(); break; case "散货称重": frm = new FrmSOWeight(); break; case "装车称重": frm = new FrmSOWeightLoading(); break; case "打印销售发货单": frm = new FrmSOLoading(); break; case "打印销售发货单(新)": frm = new FrmSOLoadingNew(); break; case "回款确认": frm = new FrmBackConfirm(); break; case "车次信息": frm = new FrmLoadingTrain(); break; case "装车信息": frm = new FrmLoadingInfo(); break; case "整货称重[简化]": frm = new FrmSOWeightLoading_Simple(); break; case "越库出库": frm = new FrmAcrossOutbound(); break; case "订单线路查询": frm = new FrmSOSortQuery(); break; case "当前订单量": frm = new FrmShowNeedSKU(); break; #endregion #region 库内管理 case "触发补货任务": frm = new FrmCreateReplenishBill(); break; case "库存查询": frm = new FrmStockQuery(); break; case "待称重集货区查询": frm = new FrmStockTemp(); break; case "库存转移": frm = new FrmStockTransfer(); break; case "移库记录表": frm = new FrmStockTransferQuery(); break; #endregion #region 盘点管理 case "创建盘点单": frm = new FrmCreateCC(); break; case "盘点差异报告": frm = new FrmCountManager(); break; case "盘点单管理": frm = new FrmCountManager(); break; case "盘点差异调整": frm = new FrmCountExecute(); break; case "盘点任务分派": frm = new FrmCountTask(); break; #endregion #region 系统管理 case "用户管理": frm = new FrmUserManager(); break; case "角色管理": frm = new FrmRoleManager(); break; case "公司信息": frm = new FrmCompanyManager(); break; case "条码规则定义": frm = new FrmBarcodeDefine(); break; case "系统设置": frm = new FrmSetting(); break; case "任务池管理": frm = new FrmTaskManager(); break; case "任务池管理(新)": frm = new FrmTaskManagerNew(); break; case "人员状态表": frm = new FrmUserState(); break; case "叫号面板": frm = new FrmCallingScreen(); break; #endregion #region 查询统计 case "库存对账查询": frm = new FrmStockAccount(); break; case "库存流水查询": frm = new FrmStockLog(); break; case "装车记录查询": frm = new FrmLoadRecords(); break; case "任务调度统计": frm = new FrmTaskReport(); break; case "商品销量统计": frm = new Reports.FrmSaleSort(); break; case "拣货记录表": frm = new FrmQueryPickRecords(); break; case "销货明细": frm = new FrmQuerySoDetails(); break; case "叉车司机任务统计": frm = new FrmQueryTransRecord(); break; case "收货绩效考核": frm = new FrmQueryAsnRecord(); break; case "装车绩效考核": frm = new FrmQueryLoadingReports2(); break; case "库房人员绩效汇总": frm = new FrmSummaryRecords2(); break; case "容器位查询": frm = new FrmContainerQuery(); break; case "容器位维护": frm = new FrmContainerLocatiomManager(); break; #endregion #region 基础管理 case "送货牌维护": frm = new FrmDriverCardManager(); break; case "客户信息": frm = new FrmCustomerManager(); break; case "仓库信息": frm = new FrmWarehouseManager(); break; case "货区信息": frm = new FrmZoneManager(); break; case "货位信息": frm = new FrmLocationManager(); break; case "物料分类": frm = new FrmMaterialTypeManager(); break; case "包装关系": frm = new FrmUnitGroupManager(); break; case "物料信息": frm = new FrmMaterialManager(); break; case "区域信息": frm = new FrmAreaManager(); break; case "品牌信息": frm = new FrmBrandManager(); break; case "不合格原因": frm = new FrmBugReasonManager(); break; case "容器信息": frm = new FrmContainerManager(); break; case "送货路线": frm = new FrmRouteManager(); break; case "叉车信息": frm = new FrmForkManager(); break; case "车辆信息": frm = new FrmVehicleManager(); break; case "推荐货位": frm = new FrmReclocationManager(); break; case "本库物料": frm = new FrmSkuWarehouseQuery(); break; #endregion case "权限管理": frm = new FrmModulesManager(); break; case "登录日志": frm = new FrmLoginLogs(); break; case "计量单位信息": frm = new FrmUnitManager(); break; case "供应商信息": frm = new FrmSupplierManager(); break; case "省份信息": frm = new FrmProvinceManager(); break; case "组织信息": frm = new FrmOrgManager(); break; case "温控信息": frm = new FrmTemperatureManager(); break; case "手持机维护": frm = new FrmPDAManager(); break; case "关联物流箱": frm = new FrmScanContainer(); break; case "修改密码": FrmChangePwd frmChangePwd = new FrmChangePwd(); frmChangePwd.ShowDialog(); break; case "商品销量": frm = new Nodes.Outstore.FrmSaleSort(); break; case "上架记录查询": frm = new FrmReportPutAway(); break; case "拣货员任务统计": frm = new FrmPickSort(); break; case "绩效考核指标": frm = new FrmPerformanceAppraisal(); break; case "配送绩效考核": frm = new FrmQueryDriverRecords(); break; //case "库存占用管理": // frm = new FrmStockOccupyManager(); // break; case "退出系统": this.Close(); break; case "帮助文档": string helpfile = AppDomain.CurrentDomain.BaseDirectory.ToString() + @"\使用手册.chm"; if (File.Exists(helpfile)) { Help.ShowHelp(this, helpfile); } else { MsgBox.Warn("无法找到相关文件,请联系技术人员!"); } break; case "货位盘点记录": frm = new FrmStockReviseRecords(); break; case "货位盘点": frm = new FrmStockReviseRecords(); break; } return(frm); }
public void Setup() { _optionsForm = new FrmOptions(); _optionsForm.Show(); }
private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { var frm = new FrmOptions(); frm.ShowDialog(); }
private void menuItemArrowOptions_Click(object sender, RoutedEventArgs e) { FrmOptions frmOptions = new FrmOptions(); frmOptions.ShowDialog(); }