Пример #1
0
 public void StartPushDialog()
 {
     using(var dlg = new PushDialog(_repository))
     {
         dlg.Run(_environment.MainForm);
     }
 }
Пример #2
0
 private void OnPushClick(object sender, EventArgs e)
 {
     var remote = _remoteView.Remote;
     if(remote != null && !remote.IsDeleted)
     {
         using(var dlg = new PushDialog(_remoteView.Repository))
         {
             dlg.Remote.Value = remote;
             dlg.Run(_remoteView);
         }
     }
 }