章政 7 жил өмнө
parent
commit
299761bf3b

+ 1 - 0
PLCDataReader/Program.cs

@@ -36,6 +36,7 @@ namespace UAS_PLCDataReader
                     Directory.CreateDirectory(LogManager.LogAddress);
                     Directory.CreateDirectory(LogManager.LogAddress);
                 FileStream fs = new FileStream(LogManager.LogAddress + DateTime.Now.ToString("yyyy-MM-dd") + ".txt", FileMode.OpenOrCreate, FileAccess.ReadWrite);
                 FileStream fs = new FileStream(LogManager.LogAddress + DateTime.Now.ToString("yyyy-MM-dd") + ".txt", FileMode.OpenOrCreate, FileAccess.ReadWrite);
                 fs.Close();
                 fs.Close();
+                DevExpress.Skins.SkinManager.EnableFormSkins();
                 if (principal.IsInRole(WindowsBuiltInRole.Administrator))
                 if (principal.IsInRole(WindowsBuiltInRole.Administrator))
                     Application.Run(new Login());
                     Application.Run(new Login());
                 else
                 else