public frmForwardToNetwork(MeshNode node) { InitializeComponent(); foreach (MeshNetwork networks in node.GetNetworks()) { checkedListBox1.Items.Add(networks); } }
private void frmMain_Load(object sender, EventArgs e) { //load chats and ui views lblProfileDisplayName.Text = _node.ProfileDisplayName; foreach (MeshNetwork network in _node.GetNetworks()) { AddChatView(network); } lstChats.SelectItem(lstChats.GetFirstItem()); ShowSelectedChatView(); //load settings bool loadDefaultSettings = true; if ((_node.AppData != null) && (_node.AppData.Length > 0)) { try { LoadProfileSettings(_node.AppData); loadDefaultSettings = false; } catch { } } if (loadDefaultSettings) { this.Width = 960; this.Height = 540; Rectangle workingArea = Screen.PrimaryScreen.WorkingArea; this.Left = workingArea.Width - workingArea.Left - this.Width - 20; this.Top = 100; } _networkStatusCheckTimer = new Timer(); _networkStatusCheckTimer.Interval = 10000; _networkStatusCheckTimer.Tick += networkStatusCheckTimer_Tick; _networkStatusCheckTimer.Start(); StartDebugging(); }