private void OnRenderProgressChanged(object sender, RenderElementEventArgs e) { try { if (!Disposing) { if (e.Percent >= 0 && e.Percent <= 100) { toolStripProgressBar_RenderingElements.Value = e.Percent; } if (e.Percent == 100) { toolStripProgressBar_RenderingElements.Visible = false; toolStripStatusLabel_RenderingElements.Visible = false; } else if (!toolStripProgressBar_RenderingElements.Visible) { toolStripProgressBar_RenderingElements.Visible = true; toolStripStatusLabel_RenderingElements.Visible = true; } } } catch(Exception ex) { Logging.ErrorException("TimedSequenceEditor: Error updating rendering progress indicator.",ex); } }
private void OnRenderProgressChanged(object sender, RenderElementEventArgs e) { try { if (!Disposing) { if (e.Percent >= 0 && e.Percent <= 100) { toolStripProgressBar_RenderingElements.Value = e.Percent; } if (e.Percent == 100) { toolStripProgressBar_RenderingElements.Visible = false; toolStripStatusLabel_RenderingElements.Visible = false; } else if (!toolStripProgressBar_RenderingElements.Visible) { toolStripProgressBar_RenderingElements.Visible = true; toolStripStatusLabel_RenderingElements.Visible = true; } } } catch { } }