小编Gab*_*rte的帖子

在Visual Studio 2015中实现接口时,使用#region自动包围生成的代码

我知道,在Visual Studio 2013和下方有开启/关闭的生成的代码自动包围了一个选项#regionTools > Options > Text Editor > C# > Advanced> Surround generated code with #region,但选择似乎在Visual Studio 2015中移除...

有没有办法重新开启?

c# visual-studio visual-studio-2015

23
推荐指数
1
解决办法
2146
查看次数

SSDT(SQL Server数据工具)缺少Visual Studio 2015

我已经安装了Visual Studio 2015,但缺少ssdt功能,如下所示

缺少SSDT

我在安装程序中检查了ssdt选项,我唯一做的就是将默认安装目录从c:/更改为d:/(不知道它是否会改变任何内容).当我使用典型安装时,ssdt安装正常,但它在c:/安装VS,我需要安装在"D:/"...

这是我的VS安装程序的屏幕截图

Visual Studio安装程序

我怎样才能拥有SSDT功能?


编辑:为了解决我的问题,我在这个链接的第三步的第一步,这是:

Download the appropriate version of SSDTSetup.exe for your chosen language from the table below (use the “save” option in your browser, rather than “run”):
Portuguese (Brazil) http://go.microsoft.com/fwlink/?LinkID=619232&clcid=0x416
Chinese (PRC)   http://go.microsoft.com/fwlink/?LinkID=619232&clcid=0x804
German  http://go.microsoft.com/fwlink/?LinkID=619232&clcid=0x407
English (United States) http://go.microsoft.com/fwlink/?LinkID=619232&clcid=0x409
Spanish http://go.microsoft.com/fwlink/?LinkID=619232&clcid=0x40a
French  http://go.microsoft.com/fwlink/?LinkID=619232&clcid=0x40c
Italian http://go.microsoft.com/fwlink/?LinkID=619232&clcid=0x410
Japanese    http://go.microsoft.com/fwlink/?LinkID=619232&clcid=0x411
Korean  http://go.microsoft.com/fwlink/?LinkID=619232&clcid=0x412
Russian http://go.microsoft.com/fwlink/?LinkID=619232&clcid=0x419
Chinese (Taiwan)    http://go.microsoft.com/fwlink/?LinkID=619232&clcid=0x404
Run Code Online (Sandbox Code Playgroud)

visual-studio sql-server-data-tools visual-studio-2015

9
推荐指数
2
解决办法
7万
查看次数

ObservesProperty方法不能在Prism 6中观察模型的属性

我正在尝试学习Prism MVVM,我正在创建一个包含2个字段和一个按钮的窗口,当这两个字段不为空时,它会启用.

问题是我找不到让方法ObservesProperty()在一个对象上工作的方法(Pessoa在这种情况下).该CanExecuteAtualizar()方法只在app启动时调用,当我编辑文本字段NomeSobrenome按钮没有任何反应时,方法不会被触发...

我试图在没有模型的情况下工作Nome,直接在ViewModel中放置SobrenomeUltimaAtualizacao属性,它工作正常,根据方法的返回禁用按钮CanExecuteAtualizar,但我想用模型代替它.有没有办法做到这一点?

ViewAViewModel.cs

public class ViewAViewModel : BindableBase
{
    private Pessoa _pessoa;

    public Pessoa Pessoa
    {
        get { return _pessoa; }
        set { SetProperty(ref _pessoa, value); }
    }

    public ICommand CommandAtualizar { get; set; }

    public ViewAViewModel()
    {
        Pessoa = new Pessoa();
        Pessoa.Nome = "Gabriel";
        CommandAtualizar = new DelegateCommand(ExecuteAtualizar, CanExecuteAtualizar).ObservesProperty(() => Pessoa.Nome).ObservesProperty(() => Pessoa.Sobrenome);
    }

    public bool CanExecuteAtualizar()
    {
        return …
Run Code Online (Sandbox Code Playgroud)

c# wpf prism mvvm

4
推荐指数
1
解决办法
4879
查看次数

将OAuth 2与桌面c#应用程序一起使用

我之前从未使用oauth,所以我希望我的应用程序在系统的默认浏览器上打开一个URL,然后用户登录,授权等等,然后我需要将授权代码发回给我的应用程序,有没有办法做它?我正在使用Trakt的API.

c# api oauth oauth-2.0

3
推荐指数
1
解决办法
4012
查看次数