private void DrawSnapshotButton() { if (DrawTools.DrawButton(Strings.TakeSnapshot)) { DataContext.TakeSnapshot(); } }
private void DrawHeader() { GUILayout.BeginHorizontal(GUILayout.ExpandHeight(false)); bool actionRequested = DrawTools.DrawButton(Strings.ExpandAll); if (actionRequested) { DataContext.ExpandAll(); } actionRequested = DrawTools.DrawButton(Strings.CollapseAll); if (actionRequested) { DataContext.CollapseAll(); } actionRequested = DrawTools.DrawButton(Strings.CopyToClipboard); if (actionRequested) { DataContext.CopyToClipboard(); } GUILayout.Space(Appearance.LargeMargin); DataContext.ShowOwnModQueries = GUILayout.Toggle(DataContext.ShowOwnModQueries, Strings.ShowOwnModQueries); GUILayout.FlexibleSpace(); actionRequested = DrawTools.DrawButton(Strings.DeleteSnapshot); if (actionRequested) { DataContext.Clear(); } GUILayout.EndHorizontal(); GUILayout.Space(Appearance.LargeMargin); }