OSDN Git Service

na-get-lib,ひとまず依存関係解決関数群を作った。
[applistation/AppliStation.git] / AppliStation / InstallerInfoForm.cs
index 118840d..8461fac 100644 (file)
@@ -37,8 +37,11 @@ namespace AppliStation
                        installerUrlTextBox.Text = (inst == null || inst.Url == null)?\r
                                string.Empty : inst.Url.Href;\r
                        \r
-                       osValueLabel.Text = (inst.Platform == null || string.IsNullOrEmpty(inst.Platform.Os))?\r
-                               "\94C\88Ó\82ÌWindows" : inst.Platform.Os;\r
+                       if (inst.Platform == null || string.IsNullOrEmpty(inst.Platform.Os)) {\r
+                               osValueLabel.Text = "\94C\88Ó\82ÌWindows";\r
+                       } else {\r
+                               osValueLabel.Text = inst.Platform.Os.Replace("WIN", string.Empty);\r
+                       }\r
                        \r
                        switch ((inst.Platform != null)? inst.Platform.Arch : System.Reflection.ProcessorArchitecture.X86) {\r
                                case System.Reflection.ProcessorArchitecture.Amd64:\r