示例#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;
 }