コード例 #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;
 }