Exemplo n.º 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);
        }
Exemplo n.º 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;
 }