Code maid
This commit is contained in:
parent
29fd5f51c5
commit
4fdfe1efe2
9 changed files with 1708 additions and 1774 deletions
|
|
@ -40,26 +40,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
public partial class View3DWidget
|
||||
{
|
||||
private void AutoArrangePartsInBackground()
|
||||
{
|
||||
if (MeshGroups.Count > 0)
|
||||
{
|
||||
string progressArrangeParts = LocalizedString.Get("Arranging Parts");
|
||||
string progressArrangePartsFull = string.Format("{0}:", progressArrangeParts);
|
||||
processingProgressControl.ProcessType = progressArrangePartsFull;
|
||||
processingProgressControl.Visible = true;
|
||||
processingProgressControl.PercentComplete = 0;
|
||||
LockEditControls();
|
||||
|
||||
BackgroundWorker arrangeMeshGroupsBackgroundWorker = new BackgroundWorker();
|
||||
|
||||
arrangeMeshGroupsBackgroundWorker.DoWork += new DoWorkEventHandler(arrangeMeshGroupsBackgroundWorker_DoWork);
|
||||
arrangeMeshGroupsBackgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(arrangeMeshGroupsBackgroundWorker_RunWorkerCompleted);
|
||||
|
||||
arrangeMeshGroupsBackgroundWorker.RunWorkerAsync();
|
||||
}
|
||||
}
|
||||
|
||||
private void arrangeMeshGroupsBackgroundWorker_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
||||
|
|
@ -163,5 +143,25 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
PullMeshGroupDataFromAsynchLists();
|
||||
}
|
||||
|
||||
private void AutoArrangePartsInBackground()
|
||||
{
|
||||
if (MeshGroups.Count > 0)
|
||||
{
|
||||
string progressArrangeParts = LocalizedString.Get("Arranging Parts");
|
||||
string progressArrangePartsFull = string.Format("{0}:", progressArrangeParts);
|
||||
processingProgressControl.ProcessType = progressArrangePartsFull;
|
||||
processingProgressControl.Visible = true;
|
||||
processingProgressControl.PercentComplete = 0;
|
||||
LockEditControls();
|
||||
|
||||
BackgroundWorker arrangeMeshGroupsBackgroundWorker = new BackgroundWorker();
|
||||
|
||||
arrangeMeshGroupsBackgroundWorker.DoWork += new DoWorkEventHandler(arrangeMeshGroupsBackgroundWorker_DoWork);
|
||||
arrangeMeshGroupsBackgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(arrangeMeshGroupsBackgroundWorker_RunWorkerCompleted);
|
||||
|
||||
arrangeMeshGroupsBackgroundWorker.RunWorkerAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue