public void DoPostLoadInitialization() { try { gCodeRenderer.GCodeFileToDraw?.GetFilamentUsedMm(ActiveSliceSettings.Instance.GetValue <double>(SettingsKey.filament_diameter)); } catch (Exception e) { Debug.Print(e.Message); GuiWidget.BreakInDebugger(); } gCodeRenderer.CreateFeaturesForLayerIfRequired(0); }
public static void DoPostLoadInitialization(object sender, DoWorkEventArgs doWorkEventArgs) { GCodeRenderer gCodeRenderer = (GCodeRenderer)doWorkEventArgs.Argument; try { if (gCodeRenderer.GCodeFileToDraw != null) { gCodeRenderer.GCodeFileToDraw.GetFilamentUsedMm(ActiveSliceSettings.Instance.FilamentDiameter); } } catch (Exception) { } gCodeRenderer.CreateFeaturesForLayerIfRequired(0); }
public static void DoPostLoadInitialization(object sender, DoWorkEventArgs doWorkEventArgs) { GCodeRenderer gCodeRenderer = (GCodeRenderer)doWorkEventArgs.Argument; gCodeRenderer.CreateFeaturesForLayerIfRequired(0); }