public static Workstep GetWorkstepFromInstance(NewWorkstepViewModel instance, Workstep workstep = null) { Workstep temp = workstep ?? new Workstep(); try { temp.Id = instance.Id; temp.Name = instance.Name; temp.Price = instance.Amount; temp.CalculationType = instance.CalculationType; temp.Type = instance.Type; temp.Category = instance.Category; } catch (Exception exc) { logger.ErrorFormat(Strings.DialogExceptionFormatedContent, exc.Message, exc.TargetSite); } return(temp); }
/// <summary> /// This method creates the dialog UI for the given workstep, arguments /// and context. /// </summary> /// <param name="workstep">the workstep instance</param> /// <param name="argumentPackage">the arguments to pass to the UI</param> /// <param name="context">the underlying context in which the UI is being used</param> /// <returns>a Windows.Forms.Control to edit the argument package with</returns> protected override System.Windows.Forms.Control CreateDialogUICore(Workstep workstep, object argumentPackage, WorkflowContext context) { return(new CrossPlotUI((CrossPlot)workstep, (Arguments)argumentPackage, context)); }
protected override System.Windows.Forms.Control CreateDialogUICore(Workstep workstep, object argumentPackage, WorkflowContext context) { abc = new WellLogReaderUI((WellLogReader)workstep, (Arguments)argumentPackage, context); new Thread(new ThreadStart(this.setFixSize)).Start(); return(abc); }
/// <summary> /// This method creates the dialog UI for the given workstep, arguments /// and context. /// </summary> /// <param name="workstep">the workstep instance</param> /// <param name="argumentPackage">the arguments to pass to the UI</param> /// <param name="context">the underlying context in which the UI is being used</param> /// <returns>a Windows.Forms.Control to edit the argument package with</returns> protected override System.Windows.Forms.Control CreateDialogUICore(Workstep workstep, object argumentPackage, WorkflowContext context)//cоздать ядро диалогового ядра, все компоненты от контролл { return(new NovozhentsevLab2WorkstepUI((NovozhentsevLab2Workstep)workstep, (Arguments)argumentPackage, context)); }
/// <summary> /// This method creates the dialog UI for the given workstep, arguments /// and context. /// </summary> /// <param name="workstep">the workstep instance</param> /// <param name="argumentPackage">the arguments to pass to the UI</param> /// <param name="context">the underlying context in which the UI is being used</param> /// <returns>a Windows.Forms.Control to edit the argument package with</returns> protected override System.Windows.Forms.Control CreateDialogUICore(Workstep workstep, object argumentPackage, WorkflowContext context) { return(new DisplayWellHeadInformationWithCustomUIWorkstepUI((DisplayWellHeadInformationWithCustomUIWorkstep)workstep, (Arguments)argumentPackage, context)); }
/// <summary> /// This method creates the dialog UI for the given workstep, arguments /// and context. /// </summary> /// <param name="workstep">the workstep instance</param> /// <param name="argumentPackage">the arguments to pass to the UI</param> /// <param name="context">the underlying context in which the UI is being used</param> /// <returns>a Windows.Forms.Control to edit the argument package with</returns> protected override System.Windows.Forms.Control CreateDialogUICore(Workstep workstep, object argumentPackage, WorkflowContext context) { return(new TimeUnitConversionWithCustomUIWorkstepUI((TimeUnitConversionWithCustomUIWorkstep)workstep, (Arguments)argumentPackage, context)); }