Beispiel #1
0
            public void Save(WidgetConfig config)
            {
                config["HostName"]       = HostName.ToString();
                config["LogonDomain"]    = LogonDomain.ToString();
                config["IpAddress"]      = IpAddress.ToString();
                config["MachineDomain"]  = MachineDomain.ToString();
                config["MacAddress"]     = MacAddress.ToString();
                config["BootTime"]       = BootTime.ToString();
                config["Cpu"]            = Cpu.ToString();
                config["DefaultGateway"] = DefaultGateway.ToString();
                config["DhcpServer"]     = DhcpServer.ToString();
                config["DnsServer"]      = DnsServer.ToString();
                config["FreeSpace"]      = FreeSpace.ToString();

                config["LabelColor"] = ColorTranslator.ToHtml(LabelColor);
                config["ValueColor"] = ColorTranslator.ToHtml(ValueColor);
            }
Beispiel #2
0
 /// <summary>
 /// 文字列配列型のデフォルトゲートウェイを取得します。
 /// </summary>
 public string[] GetDefaultGatewayStringArray() => DefaultGateway == null || DefaultGateway.ToString() == "0.0.0.0" || DefaultGateway == IPAddress ? null : new string[]
 {
     DefaultGateway.ToString()
 };