Bend.GotoLine.ShowGotoLineWindow C# (CSharp) Method

ShowGotoLineWindow() public static method

public static ShowGotoLineWindow ( MainWindow mainWindow ) : void
mainWindow MainWindow
return void
        public static void ShowGotoLineWindow(MainWindow mainWindow)
        {
            if (singletonGotoLineWindow == null)
            {
                singletonGotoLineWindow = new GotoLine(mainWindow);
                singletonGotoLineWindow.Owner = mainWindow;
            }
            singletonGotoLineWindow.lineNumber.Text = "";
            singletonGotoLineWindow.Show();
            singletonGotoLineWindow.Focus();
        }

Usage Example

Example #1
0
 private void CommandGoto(object sender, ExecutedRoutedEventArgs e)
 {
     GotoLine.ShowGotoLineWindow(this);
 }