private void formPanelSelectForGroupSending_Load(object sender, EventArgs e) { if (Program.IsforeignTradeMode) { base.Icon = Resources.AppIconV5; } else { base.Icon = Resources.AppIcon; } this.isCloud = false; this.pnlMode.Visible = false; this.rdoLocal.Checked = true; this.rdoCloud.Checked = false; if (this.IsCloudLogin) { this.pnlMode.Visible = true; LedPanel selectedPanel = formMain.ledsys.SelectedPanel; if (selectedPanel != null && selectedPanel.GetType() == typeof(LedPanelCloud)) { this.rdoLocal.Checked = false; this.rdoCloud.Checked = true; } } this.LoadTreeView(); }