예제 #1
0
        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);
        }
예제 #2
0
 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;
 }