public bool ShowProjectRenameDialog(string name, out string newName) { newName = null; var vm = new ProjectRenameViewModel(name); var wnd = new ProjectRenameWindow { DataContext = vm }; if (wnd.ShowDialog().GetValueOrDefault()) { newName = vm.ProjectName; return(true); } return(false); }
public bool ShowProjectRenameDialog(string name, out string newName) { newName = null; var vm = new ProjectRenameViewModel(name); var wnd = new ProjectRenameWindow { DataContext = vm }; if (wnd.ShowDialog().GetValueOrDefault()) { newName = vm.ProjectName; return true; } return false; }