Ejemplo n.º 1
0
        public PointingModel()
        {
            InitializeComponent();

            this.database        = new DataBaseMongo();
            metroButton1.Enabled = false;
            this.jsonfile        = new JsonAstro();
            WindowState          = FormWindowState.Maximized;
            textBox2.Text        = TyTask.f.ToString();
            textBox3.Text        = TyTask.p.ToString();
            metroButton2.Enabled = false;
            TyTask.statusbuttom  = false;


            drives = DriveInfo.GetDrives().Where(drive => drive.IsReady && drive.DriveType == DriveType.Removable).ToArray();
            if (drives.Length == 0)
            {
                toolStripDropDownButton1.Text    = "Not Connected";
                toolStripDropDownButton1.Enabled = false;
            }
            else
            {
                foreach (DriveInfo drive in drives)
                {
                    toolStripDropDownButton1.DropDownItems.Add(drive.Name.ToString());
                }
                toolStripDropDownButton1.Enabled = true;
            }
        }
Ejemplo n.º 2
0
 public Ui()
 {
     InitializeComponent();
     mongoLib = new Mongolib("mongodb://127.0.0.1:27017", "GaiaData");
     mongoLib.NAMECOLLECTION = "GDR2Mag15";
     this.jsonPlan           = new JsonAstro();
     this.jsondb             = new JsonAstro();
     button1.Enabled         = false;
     this.graph = zedGraphControl1.GraphPane;
     this.spl1  = new PointPairList();
     this.spl2  = new PointPairList();
 }