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]"; } }
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; }