예제 #1
0
 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);
 }
예제 #2
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);
        }
예제 #3
0
        public static void DoPostLoadInitialization(object sender, DoWorkEventArgs doWorkEventArgs)
        {
            GCodeRenderer gCodeRenderer = (GCodeRenderer)doWorkEventArgs.Argument;

            gCodeRenderer.CreateFeaturesForLayerIfRequired(0);
        }