Example #1
0
 static SoccerAppAddin()
 {
     AssemblyResolver.AddPath
     (
         Path.Combine(CCommonHostHelper.CommonPath, STARTPATH)
     );
 }//end (GlobalVariableAddin)
Example #2
0
        static void Main()
        {
            string sPath = Environment.GetEnvironmentVariable("Wasp3.5", EnvironmentVariableTarget.Machine);

            AssemblyResolver.AddPath
            (
                Path.Combine(sPath, "Shared Resources")
            );

            Process[] result = Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName);
            if (result.Length > 1)
            {
                MessageBox.Show("There is already a instance running.", "Information");
                System.Environment.Exit(0);
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new SoccerApp());
        }
Example #3
0
 static XProvider()
 {
     QBHelper.InitNLog();
     AssemblyResolver.AddPath(QBHelper.BasePath);
 }
Example #4
0
 static QuantBoxCtpse()
 {
     AssemblyResolver.AddPath(Path.Combine(Path.GetDirectoryName(Installation.ConfigDir.FullName), "XAPI\\x64\\CTPSE\\"));
 }