Long Progress Logics were added

This commit is contained in:
Evgeny Redikultsev
2023-11-12 20:38:11 +05:00
parent 36cb0878e9
commit ba797e7aaa
16 changed files with 513 additions and 242 deletions

View File

@@ -0,0 +1,22 @@
using StructureHelperCommon.Models.Calculators;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace StructureHelperCommon.Infrastructures.Interfaces
{
public interface ILongProcessLogic
{
int StepCount { get; }
Action<int> SetProgress { get; set; }
bool Result { get; set; }
void WorkerDoWork(object sender, DoWorkEventArgs e);
void WorkerProgressChanged(object sender, ProgressChangedEventArgs e);
void WorkerRunWorkCompleted(object sender, RunWorkerCompletedEventArgs e);
}
}

View File

@@ -0,0 +1,9 @@
namespace StructureHelperCommon.Models.Forces
{
public class InterpolateTuplesResult
{
public IDesignForceTuple StartTuple { get; set; }
public IDesignForceTuple FinishTuple { get; set; }
public int StepCount { get; set; }
}
}