Beispiel #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public MainForm()
        {
            InitializeComponent();

            //Name settings
            string ProgDocumentFullPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "ObservatoryControl");

            //ConfigManagement.InitConfig(ProgDocumentFullPath, "ObservatoryControl.config", "Docs//ObservatoryControl.defaultconfig.txt");
            //Logging.InitLogging(ProgDocumentFullPath, "observatory_", false); //set log folder and log file name
            Logging.AddLog("****************************************************************************************", LogLevel.Activity);
            Logging.AddLog("Observatory Center started", LogLevel.Activity);
            Logging.AddLog("****************************************************************************************", LogLevel.Activity);

            ObsControl = new ObservatoryControls(this);
            SetForm    = new SettingsForm(this);
            TestForm   = new TestEquipmentForm(this);

            //Prepare separate thread obj (just dummy init, because it couldn't be null)
            //CheckPowerStatusThread_ref = new ThreadStart(ObsControl.CheckPowerDeviceStatus);
            //CheckPowerStatusThread = new Thread(CheckPowerStatusThread_ref);
            //SetPowerStatusThread = new Thread(ObsControl.SetDeviceStatus(null,null,null,null));
        }
 public Maxim_ExternalApplication(ObservatoryControls ExtObsControls) : base()
 {
     ParentObsControls = ExtObsControls;
 }
Beispiel #3
0
 public TestEquipmentClass(ObservatoryControls ExtObsControl)
 {
     ObsControl = ExtObsControl;
 }
Beispiel #4
0
 public FocusMax_ExternalApplication(ObservatoryControls ExtObsControl) : base()
 {
     ParentObsControl = ExtObsControl;
 }
Beispiel #5
0
 public CCDC_ExternatApplication(ObservatoryControls OCLink) : base()
 {
     ParentObsControl = OCLink;
 }