Пример #1
0
        private void frmRA_DEC_Load(object sender, EventArgs e)
        {

            if (frmUserCatalog.m_Objects == null)
            {
                frmProgress.Initialize(0, 100, "Load Catalogs...", null);
                frmProgress.ShowProgress(this);

                frmUserCatalog uc = new frmUserCatalog();
                uc.PopulateCatalogs();
                uc.Dispose();
                frmProgress.HideProgress();
            }
            GeminiHardware.Instance.OnConnect += new ConnectDelegate(OnConnect);
            txtObject.AutoCompleteSource = AutoCompleteSource.CustomSource;
            txtObject.AutoCompleteMode = AutoCompleteMode.Suggest;
            System.Windows.Forms.AutoCompleteStringCollection coll = new AutoCompleteStringCollection();
            coll.AddRange(frmUserCatalog.m_Objects.Keys.ToArray<string>());

            txtObject.AutoCompleteCustomSource = coll;
            SetButtonState();
            chkJ2000.Checked = true;
        }
Пример #2
0
 private void configureCatalogsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (frmCatalog == null || frmCatalog.IsDisposed || !frmCatalog.Visible)
         frmCatalog = new frmUserCatalog();
     frmCatalog.Visible = false;
     frmCatalog.Show(this);
 }