public string GetInput(string inputMessage, bool required) { IOutputCommand <string> command = FrontController.GetInstance().RunCommand ("input.userinput", inputMessage, required) as IOutputCommand <string>; return(command.Output); }
/// <summary> /// Gets the current PartModel and opens the bom master for editing. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void openBomMasterLink_OpenLink(object sender, OpenLinkEventArgs e) { PartModel partModel = modeLookup.EditValue as PartModel; if (partModel != null) { FrontController.GetInstance().RunCommand( PartCommands.ManagePartModelBomMaster, partModel.Id); } }
private void f9CommentsLink_OpenLink(object sender, OpenLinkEventArgs e) { if (m_item == null) { return; } FrontController.GetInstance().RunCommand( ServiceCommands.ViewF9Comments, m_item); }
private void hyperLinkEdit1_OpenLink(object sender, DevExpress.XtraEditors.Controls.OpenLinkEventArgs e) { BomConfiguration configuration = serviceConfigurationsView.GetFocusedRow() as BomConfiguration; if (configuration != null) { FrontController.GetInstance().RunCommand( MaterialCommands.ConsumeBomConfiguration, configuration); } }
public frmMain() { this._frontController = FrontController.GetInstance(); this.View_OnQueryRecordsCompletion = this.RefreshGridData; this.View_OnGetLogStatisticsCompletion = this.UpdateDashboard; this.View_OnGetCalendarDataCompletion = this.UpdateCalendarData; this.View_OnGetObjectiveDataCompletion = this.UpdateObjectiveData; this.View_OnViewReady = OnViewReady; this.View_OnShow = OnShow; InitializeComponent(); this.InitializeRequiredData(); this.SetTimer(); this.StartTimer(); }
private void saveAndNewButton_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (Save()) { VerifySaveClose(); if (m_order.CreatedFromTemplate) { FrontController.GetInstance().RunCommand(OrdersCommands.New_FromTemplate); } else { ViewLoader.Instance().CreateFormWithArgs <mainOrderForm>(true, OrderService.CreateOrderAsArg(m_order.OrderType)); } } }
public void ManageConfiguration(BomConfiguration configuration) { FrontController.GetInstance().RunCommand( PartCommands.ManageBomConfiguration, configuration); }