public override void Execute() { var editorControl = new NuGetConnectionEditor(); editorControl.ViewModel = Data; ShFormUtilsEx.ShowModal(editorControl); }
public override void Execute() { if (Data == null) { Data = new NuGetGalleryConnectionViewModel(); } var editorControl = new NuGetConnectionEditor(); editorControl.ViewModel = Data; ShFormUtilsEx.ShowModal(new ShowModalExOptions { Control = editorControl, OnOk = (s, e) => { AppService.NuGetConnections.Add(editorControl.ViewModel); } }); }