protected virtual void OnOK (object sender, System.EventArgs e) { if (currentSelection != null) { result = currentSelection.Subject; } else { result = null; } }
protected virtual void OnOK(object sender, System.EventArgs e) { if (currentSelection != null) { result = currentSelection.Subject; } else { result = null; } }
static IHeapItemSetStatisticsSubject ChooseSubject (IHeapItemSetStatisticsBySubject[] subjects, string subjectName) { IHeapItemSetStatisticsSubject result; if (chooser == null) { chooser = new LoadedClassChooser (); } chooser.Title = "Choose " + subjectName; chooser.FillList (subjects); ResponseType response = (ResponseType) chooser.Run (); if (response == ResponseType.Ok) { result = chooser.result; } else { result = null; } chooser.Hide (); return result; }
static IHeapItemSetStatisticsSubject ChooseSubject(IHeapItemSetStatisticsBySubject[] subjects, string subjectName) { IHeapItemSetStatisticsSubject result; if (chooser == null) { chooser = new LoadedClassChooser(); } chooser.Title = "Choose " + subjectName; chooser.FillList(subjects); ResponseType response = (ResponseType)chooser.Run(); if (response == ResponseType.Ok) { result = chooser.result; } else { result = null; } chooser.Hide(); return(result); }
public static LoadedClass ChooseClass(IHeapItemSetStatisticsBySubject[] subjects) { IHeapItemSetStatisticsSubject result = ChooseSubject(subjects, "class"); return(result as LoadedClass); }
protected virtual void OnCancel(object sender, System.EventArgs e) { result = null; }
public static StackTrace ChooseCallStack(IHeapItemSetStatisticsBySubject[] subjects) { IHeapItemSetStatisticsSubject result = ChooseSubject(subjects, "call stack"); return(result as StackTrace); }
public static LoadedMethod ChooseMethod(IHeapItemSetStatisticsBySubject[] subjects) { IHeapItemSetStatisticsSubject result = ChooseSubject(subjects, "method"); return(result as LoadedMethod); }
protected virtual void OnCancel (object sender, System.EventArgs e) { result = null; }