private void AntminerDetails_Load(object sender, System.EventArgs e) { ThemeResolutionService.ApplicationThemeName = "Windows8"; var antminer = AntminerService.GetAntminerById(AntminerId); if (antminer == null) { Close(); return; } var details = new UserControls.Antminer.AntminerDetails { Ip = IPAddress.Parse(antminer.IpAddress), Dock = DockStyle.Fill, Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right }; pnlDetails.Controls.Add(details); }
private void AntminerDetails_Load(object sender, System.EventArgs e) { ThemeResolutionService.ApplicationThemeName = "Windows8"; var antminer = AntminerService.GetAntminerById(AntminerId); if (antminer == null) { Close(); return; } var details = new UserControls.Antminer.AntminerDetails { Ip = IPAddress.Parse(antminer.IpAddress), Dock = DockStyle.Fill, Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right }; pnlDetails.Controls.Add(details); }