public App() { VirtualRoot.SetIsMinerStudio(true); VirtualRoot.GlobalDirFullName = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "NTMiner"); Logging.LogDir.SetDir(System.IO.Path.Combine(VirtualRoot.GlobalDirFullName, "Logs")); AppHelper.Init(this); InitializeComponent(); }
static App() { AppType = Environment.CommandLine.IndexOf("--minerstudio", StringComparison.OrdinalIgnoreCase) != -1 ? NTMinerAppType.MinerStudio : NTMinerAppType.MinerClient; // 读取注册表中的Location的时候会根据VirtualRoot.IsMinerStudio而变化所以需要赋值 if (AppType == NTMinerAppType.MinerStudio) { VirtualRoot.SetIsMinerStudio(true); } }
public App() { if (DevMode.IsDevMode && !Debugger.IsAttached && !Design.IsInDesignMode) { Write.Init(); } VirtualRoot.SetIsMinerStudio(true); AssemblyInfo.GlobalDirFullName = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "NTMiner"); Logging.LogDir.SetDir(System.IO.Path.Combine(AssemblyInfo.GlobalDirFullName, "Logs")); AppUtil.Init(this); InitializeComponent(); }
static App() { if (!Debugger.IsAttached && !Design.IsInDesignMode) { Write.Init(); } AppType = Environment.CommandLine.IndexOf("--minerstudio", StringComparison.OrdinalIgnoreCase) != -1 ? NTMinerAppType.MinerStudio : NTMinerAppType.MinerClient; // 读取注册表中的Location的时候会根据VirtualRoot.IsMinerStudio而变化所以需要赋值 if (AppType == NTMinerAppType.MinerStudio) { VirtualRoot.SetIsMinerStudio(true); } }