Esempio n. 1
0
        public static async Task <Result <OAuthCredentials> > ShowNew(OAuthCredentials input, IHostingManager[] hostingManagers)
        {
            var result = new Result <OAuthCredentials>(new OAuthCredentials());

            StaApplication.StartNew(() => new OAuthCredentialsForm(input, hostingManagers, result)).Join();
            return(result);
        }
Esempio n. 2
0
        public static async Task <Result <Node <OAuthCredentials> > > ShowNew(Node <OAuthCredentials> input, ServicesCollection services)
        {
            var result = new Result <Node <OAuthCredentials> >(null);

            StaApplication.StartNew(() => new TopologyEditorForm(services, input, result)).Join();
            return(result);
        }
Esempio n. 3
0
 public static Thread ShowNew(Action <WebBrowser, Form> configurator)
 {
     return(StaApplication.StartNew(() => StaConfigurator(configurator)));
 }