Пример #1
0
 public void Run()
 {
     using (_view = _formFactory.GetForm())
     {
         _view.Model = new Model.LoginModel();
         BindCommands();
         _view.ShowDialog();
     }
 }
Пример #2
0
 public async Task Run()
 {
     using (_view = _formFactory.GetForm())
     {
         BindCommands();
         _view.Model = new Model.DownloadSelectedVersionModel(_view.SynchronizationContext);
         _view.ShowDialog();
         await ShowDialogSelectPath();
     }
 }
Пример #3
0
 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();
     }
 }
Пример #4
0
 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();
     }
 }