private void Method_Add_Click(object sender, RoutedEventArgs e) { MethodName methodname = new MethodName(); methodname.ShowDialog(); SetMethodNames(); MethodCommandLineEnable(); }