Esempio n. 1
0
        private void Afterload()
        {
            string[] keys = DejitaruInit.GetncheckDSNKey();
            if (keys.Length > 0)
            {
                lblloadstatus.Text = "Data source found.";

                if (Dejitaru.TestDB(keys[0], keys[1], keys[2]))
                {
                    DejitaruInit.IsDBReady = true;
                    this.Close();
                }
                else
                {
                    DejitaruInit.IsDBReady = false;
                    this.Close();
                }
            }
            else
            {
                lblloadstatus.Text     = "No data source found.";
                DejitaruInit.IsDBReady = false;
                this.Close();
            }
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string[] keys = DejitaruInit.GetncheckDSNKey();



            if (keys != null)
            {
                foreach (string key in keys)
                {
                    MessageBox.Show(key);
                }

                MessageBox.Show(Dejitaru.TestDB(keys[0], keys[1], keys[2]).ToString());
            }
        }