Beispiel #1
0
 public ValueDumpUI()
 {
     Logging.Log("ValueDump","Starting ValueDump",Logging.Orange);
     InitializeComponent();
     _market = new Market();
     _directEve = new DirectEve();
     Cache.Instance.DirectEve = _directEve;
     _directEve.OnFrame += OnFrame;
 }
Beispiel #2
0
        public ValueDumpUI()
        {
            Logging.Log("ValueDump","Starting ValueDump",Logging.Orange);
            InitializeComponent();
            _market = new Market();

            #region Load DirectEVE
            //
            // Load DirectEVE
            //

            try
            {
                if (Cache.Instance.DirectEve == null)
                {
                    //
                    // DE now has cloaking enabled using EasyHook, If EasyHook DLLs are missing DE should complain. We check for and complain about missing EasyHook stuff before we get this far.
                    //
                    //
                    //Logging.Log("Startup", "temporarily disabling the loading of DE for debugging purposes, halting", Logging.Debug);
                    //while (Cache.Instance.DirectEve == null)
                    //{
                    //    System.Threading.Thread.Sleep(50); //this pauses forever...
                    //}
                    Cache.Instance.DirectEve = new DirectEve();
                }
            }
            catch (Exception ex)
            {
                Logging.Log("ValueDump", "Error on Loading DirectEve, maybe server is down", Logging.Orange);
                Logging.Log("ValueDump", string.Format("DirectEVE: Exception {0}...", ex), Logging.White);
                Cache.Instance.CloseQuestorCMDLogoff = false;
                Cache.Instance.CloseQuestorCMDExitGame = true;
                Cache.Instance.CloseQuestorEndProcess = true;
                Settings.Instance.AutoStart = true;
                Cache.Instance.ReasonToStopQuestor = "Error on Loading DirectEve, maybe server is down";
                Cache.Instance.SessionState = "Quitting";
                Cleanup.CloseQuestor(Cache.Instance.ReasonToStopQuestor);
                return;
            }
            #endregion Load DirectEVE

            #region Verify DirectEVE Support Instances
            //
            // Verify DirectEVE Support Instances
            //

            try
            {
                if (Cache.Instance.DirectEve != null && Cache.Instance.DirectEve.HasSupportInstances())
                {
                    Logging.Log("ValueDump", "You have a valid directeve.lic file and have instances available", Logging.Orange);
                }
                else
                {
                    Logging.Log("ValueDump", "You have 0 Support Instances available [ Cache.Instance.DirectEve.HasSupportInstances() is false ]", Logging.Orange);
                    return;
                }

            }
            catch (Exception exception)
            {
                Logging.Log("ValueDump", "Exception while checking: _directEve.HasSupportInstances() - exception was: [" + exception + "]", Logging.Orange);
                return;
            }

            #endregion Verify DirectEVE Support Instances

            try
            {
                Cache.Instance.DirectEve.OnFrame += ValuedumpOnFrame;
            }
            catch (Exception ex)
            {
                Logging.Log("ValueDump", string.Format("DirectEVE.OnFrame: Exception {0}...", ex), Logging.White);
                return;
            }
        }
Beispiel #3
0
        private bool _valueProcess; //false

        #endregion Fields

        #region Constructors

        public ValueDump(QuestorManagerUI form1)
        {
            _form = form1;
            _market = new Market();
        }