Ejemplo n.º 1
0
        public Context()
        {
            if (config == null)
            {
                config = new Common.Config.Profile
                {
                    StorageDriver = new Common.Config.Storage.WindowsRegistry()
                    {
                        ProfileName = Common.Metadata.Name
                    }
                };
                config.Load();
            }

            if (ASCOMTrace == null)
            {
                ASCOMTrace = new TraceLogger(String.Empty, Common.Metadata.Name)
                {
                    Enabled = config.ASCOMTraceLogEnable
                };
            }

            if (!Server.StartedByCOM)
            {
                if (Form == null)
                {
                    Form = new Forms.DebugForm();
                    Form.Show();
                }

                LogMessage("Context::Context", "LocalServer not started by COM");
            }

            LogMessage("Context::Context", "LocalServer ready");
        }
Ejemplo n.º 2
0
        public SetupForm()
        {
            InitializeComponent();

            config = new Common.Config.Profile
            {
                StorageDriver = new Common.Config.Storage.WindowsRegistry()
                {
                    ProfileName = Common.Metadata.Name
                }
            };

            config.Load();

            InitUI();
            UpdateUI();
        }