コード例 #1
0
        public frmMain(MeshNode node, string profileFilePath, bool isPortableApp, frmProfileManager profileManager)
        {
            InitializeComponent();

            _node            = node;
            _profileFilePath = profileFilePath;
            _isPortableApp   = isPortableApp;
            _profileManager  = profileManager;

            _node.InvitationReceived += MeshNode_InvitationReceived;

            if (_node.Type == MeshNodeType.Anonymous)
            {
                this.Text += " [Anonymous]";
            }
        }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: bansicloud/Mesh-1
        public frmMain(MeshNode node, string profileFilePath, bool isPortableApp, MeshUpdate meshUpdate, frmProfileManager profileManager)
        {
            InitializeComponent();

            _node            = node;
            _profileFilePath = profileFilePath;
            _isPortableApp   = isPortableApp;
            _meshUpdate      = meshUpdate;
            _profileManager  = profileManager;

            _node.InvitationReceived += MeshNode_InvitationReceived;

            if (_node.Type == MeshNodeType.Anonymous)
            {
                this.Text += " [Anonymous]";
            }

            _meshUpdate.UpdateAvailable   += meshUpdate_UpdateAvailable;
            _meshUpdate.NoUpdateAvailable += meshUpdate_NoUpdateAvailable;
            _meshUpdate.UpdateCheckFailed += meshUpdate_UpdateCheckFailed;
        }