public void Update(SvgStats stats) { _layersCount.Text = stats.LayerCount.ToString(); _groupsCount.Text = stats.GroupCount.ToString(); _elementsCount.Text = stats.ElementCount.ToString(); _maskedCount.Text = stats.MaskCount.ToString(); _clippedCount.Text = stats.ClipCount.ToString(); }
private void Refresh() { bool fileExists = File.Exists(_filePath); if (!fileExists) { return; } _header.FilePath = _filePath; SvgStats stats = SvgStatsParser.TryParse(_filePath); if (stats != null) { _statsPanel.CompositionWidget.Update(stats); _statsPanel.ColourWidget.Update(stats); } // TODO: Handle as Uri, not as string. Uri fileUrl = new Uri("file://" + FilePath); _statsPanel.EditingWidget.Update(fileUrl); _log.LoadInfluences(fileUrl); _chart.LoadInfluences(fileUrl); if (_log.DataStore.Any()) { ActivityLogItem item = _log.DataStore.First() as ActivityLogItem; _chart.SetTitle(item.Date); if (Model.ContainsResource(item.Activity)) { data.Activity activity = Model.GetResource <data.Activity>(item.Activity); _chart.Zoom(activity.StartTime, activity.EndTime); } } _tabs.SelectedIndex = 1; }
public void Update(SvgStats stats) { _coloursCount.Text = stats.Colours.Count().ToString(); _colourBox.Update(stats.Colours); }