public void Run() { using (_view = _formFactory.GetForm()) { _view.Model = new Model.LoginModel(); BindCommands(); _view.ShowDialog(); } }
public async Task Run() { using (_view = _formFactory.GetForm()) { BindCommands(); _view.Model = new Model.DownloadSelectedVersionModel(_view.SynchronizationContext); _view.ShowDialog(); await ShowDialogSelectPath(); } }
public void LoadInfo() { using (_view = _formFactory.GetForm()) { BindCommands(); var dbInfoTable = _sqlMetaDataInfo.GetInfoById(_id); _view.Model = new Model.DatabaseDetailsModel(); _view.Model.Company = dbInfoTable.Rows[0][1].ToString(); _view.Model.DatabaseName = dbInfoTable.Rows[0][2].ToString(); _view.Model.Tags = dbInfoTable.Rows[0][3].ToString(); LoadTable(); _view.ShowDialog(); } }
public async Task Run() { using (_view = _formFactory.GetForm()) { BindCommands(); _view.Model = new Model.UploadNewVersionModel(_view.SynchronizationContext); ShowDialogSelectPath(); if (string.IsNullOrEmpty(_pathToFile)) { return; } _view.ShowDialog(); await StartUpload(); } }