コード例 #1
0
    public ConnectInformation <T> CreateConnectInformation <T>(string message, Action <FinishListener <T> > makeConnection, FinishListener <T> listener, int maxTry = 3, bool verbose = false, bool autoStart = true)
    {
        var connect = new ConnectInformation <T>(this, makeConnection, listener, message, maxTry, verbose);

        lock (RegisteredConnect)
        {
            RegisteredConnect.Add(connect);
        }
        if (autoStart)
        {
            connect.Start();
        }

        return(connect);
    }
コード例 #2
0
ファイル: ConnectForm.cs プロジェクト: jterweeme/spchat
 public ConnectForm(ConnectInformation connectInformation)
 {
     InitializeComponent();
     _connectInformation = connectInformation;
 }
コード例 #3
0
ファイル: ConnectForm.cs プロジェクト: jterweeme/spchat
 public ConnectForm(ConnectInformation connectInformation)
 {
     InitializeComponent();
     _connectInformation = connectInformation;
 }