Exemplo n.º 1
0
 public void InstanceRemoved(VagrantManager vagrantManager, VagrantInstance instance)
 {
     _NativeMenu.Menu.BeginInvoke((MethodInvoker) delegate {
         Dictionary <string, object> userInfo = new Dictionary <string, object>();
         userInfo["instance"] = instance;
         NotificationCenter.Instance.PostNotification("vagrant-manager.instance-removed", new Notification(null, userInfo));
     });
 }
Exemplo n.º 2
0
 public void InstanceUpdated(VagrantManager vagrantManager, VagrantInstance oldInstance, VagrantInstance newInstance)
 {
     _NativeMenu.Menu.BeginInvoke((MethodInvoker) delegate {
         Dictionary <string, object> userInfo = new Dictionary <string, object>
         {
             ["old_instance"] = oldInstance,
             ["new_instance"] = newInstance
         };
         NotificationCenter.Instance.PostNotification("vagrant-manager.instance-updated", new Notification(null, userInfo));
     });
 }
Exemplo n.º 3
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

//only catch and log global exceptions in production builds
#if (DEBUG != true)
            AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException;

            ParseClient.Initialize("wKFfXkN9I4iCNDuezdhxNspXMGWAPBrOoSPB9Xfv", "fBfReXHDQ7AQ9CLogJdZT2wgIeplfe4jrvJpCNdx");
#endif

            VagrantManager.CreateInstance(this);
        }