public ShowForTestCode ( string example ) : string | ||
example | string | |
return | string |
public void Invoke() { if (!IsRunning) { var window = new TestCodeWindow(); window.Owner = Application.Current.MainWindow; string testCode = window.ShowForTestCode(ExampleCode); if (testCode == null) { return; } IsRunning = true; OnToggled(new InstantToggleEventArgs(View, MethodSpan, testCode)); } else { IsRunning = false; OnToggled(new InstantToggleEventArgs(View, MethodSpan)); } }
public void Invoke() { if (!IsRunning) { var window = new TestCodeWindow(); window.Owner = Application.Current.MainWindow; string testCode = window.ShowForTestCode (ExampleCode); if (testCode == null) return; IsRunning = true; OnToggled (new InstantToggleEventArgs (View, MethodSpan, testCode)); } else { IsRunning = false; OnToggled (new InstantToggleEventArgs (View, MethodSpan)); } }