示例#1
0
    static void Main()
    {
      SI.Controls.LookFeel.SetupJamesPurple();
      Application.EnableVisualStyles();
      Application.SetCompatibleTextRenderingDefault(false);
      AppDomain.CurrentDomain.UnhandledException += handleUnhandledException;

      Logger.SetLog4NetGlobalContextProperty("LogFileName", "SI.BSA.HK");
      Logger.SetLog4NetGlobalContextProperty("LogFileDir",
        string.Format("{0}\\BSA", Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData)));
      Logger.Configure();

      Logger.Debug("Logging up and running", typeof(Program));

      var nMathPath = LocationFinder.GetLocation() == LocationFinder.Location.LN
              ? @"\\symnasuk\sd.symmetryinvestments.com$\SS\TradeAnalyzerClient\NMathNative"
              : @"\\symnashk\sd.symmetryinvestments.com$\SS\TradeAnalyzerClient\NMathNative";
      Logger.InfoFormat(typeof(Program), "NMathNativeLocation set to: {0}", nMathPath);
      NMathConfiguration.NativeLocation = nMathPath;

      SI.Controls.ShowForm.DefaultIcon = BSAResources.PurpleGlobal;

      if (!SymmetryEnvironment.IsInSymmetryDomain)
      {
        DialogResult result;

        using (var loginForm = new SI.Controls.LoginForm())
          result = loginForm.DisplayInShowFormDialog("BSA Login please", null);

        if (result != DialogResult.OK)
          return;
      }

      if (!Permissioning.UserIsPermissioned(SymmetryEnvironment.UserName))
        return;

      ShowForm sf = new ShowForm
      {
        Text =
          string.Format("BSA - {0}",
            System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()),
      };

      sf.Create(new MainContainer());


      Application.Run(sf);

      SI.Strategy.BondSpreadAnalysis.Carbon.CarbonSubscriber.DisposeInstance();

    }
示例#2
0
    static void Main()
    {
      Application.EnableVisualStyles();
      Application.SetCompatibleTextRenderingDefault(false);
      AppDomain.CurrentDomain.UnhandledException += handleUnhandledException;

      LookFeel.SetupNoirModerneLookFeel();

      Logger.SetLog4NetGlobalContextProperty("LogFileDir", string.Format("{0}\\SI.Dashboard.HK", Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData)));
      Logger.Configure();
      Logger.Debug("Logging up and running", typeof(Program));

      var nMathPath = LocationFinder.GetLocation() == LocationFinder.Location.LN
              ? @"\\symnasuk\sd.symmetryinvestments.com$\SS\TradeAnalyzerClient\NMathNative"
              : @"\\symnashk\sd.symmetryinvestments.com$\SS\TradeAnalyzerClient\NMathNative";
      Logger.InfoFormat(typeof(Program), "NMathNativeLocation set to: {0}", nMathPath);
      NMathConfiguration.NativeLocation = nMathPath;

      if (!SymmetryEnvironment.IsInSymmetryDomain)
      {
        DialogResult result;

        using (var loginForm = new SI.Controls.LoginForm())
          result = loginForm.DisplayInShowFormDialog("Dashboard Login please", null);

        if (result != DialogResult.OK)
          return;
      }

      ShowForm.DefaultIcon = DashboardResources.Dashboard_01;

      var sf = new ShowForm
      {
        Text =
          string.Format("SI.Dashboard - {0}",
            System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()),
      };

      var mc = new MainContainer();

      sf.Create(mc);
      mc.Create();

      Application.DoEvents();

      Application.Run(sf);
    }
示例#3
0
        static void Main()
        {            
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            AppDomain.CurrentDomain.UnhandledException += handleUnhandledException;

            Logger.SetLog4NetGlobalContextProperty("LogFileDir",
              string.Format("{0}\\BSServiceClient", Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData)));
            Logger.Configure();

            Logger.Debug("Logging up and running", typeof(Program));



            if (!SymmetryEnvironment.IsInSymmetryDomain)
            {
                DialogResult result;

                using (var loginForm = new SI.Controls.LoginForm())
                    result = loginForm.DisplayInShowFormDialog("BSA Login please", null);

                if (result != DialogResult.OK)
                    return;
            }

            if (!Permissioning.UserIsPermissioned(SymmetryEnvironment.UserName))
                return;

            ShowForm sf = new ShowForm
            {
                Text =
                  string.Format("BSServiceClient - {0}",
                    System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()),
            };

            sf.Create(new BSServiceClientView());



            Application.Run(sf);
        }
示例#4
0
    static void Main()
    {
      Application.EnableVisualStyles();
      Application.SetCompatibleTextRenderingDefault(false);
      AppDomain.CurrentDomain.UnhandledException += handleUnhandledException;

      LookFeel.SetupNoirModerneLookFeel();

      Logger.SetLog4NetGlobalContextProperty("LogFileDir", string.Format("{0}\\SI.RollMonitor.LN", Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData)));
      Logger.Configure();
      Logger.Debug("Logging up and running", typeof(Program));

      if (!SymmetryEnvironment.IsInSymmetryDomain)
      {
        DialogResult result;

        using (var loginForm = new SI.Controls.LoginForm())
          result = loginForm.DisplayInShowFormDialog("RollMonitor Login please", null);

        if (result != DialogResult.OK)
          return;
      }

      ShowForm.DefaultIcon = RollMonitorResources.Designcontest_Vintage_Paint_Roll;

      var sf = new ShowForm
      {
        Text =
          string.Format("SI.RollMonitor - {0}",
            System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()),
      };

      var mc = new MainContainer();

      sf.Create(mc);
      mc.Create();

      Application.Run(sf);

    }