Example #1
0
 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();
 }
Example #2
0
 static App()
 {
     AppType = Environment.CommandLine.IndexOf("--minerstudio", StringComparison.OrdinalIgnoreCase) != -1 ? NTMinerAppType.MinerStudio : NTMinerAppType.MinerClient;
     // 读取注册表中的Location的时候会根据VirtualRoot.IsMinerStudio而变化所以需要赋值
     if (AppType == NTMinerAppType.MinerStudio)
     {
         VirtualRoot.SetIsMinerStudio(true);
     }
 }
Example #3
0
 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();
 }
Example #4
0
 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);
     }
 }