示例#1
0
        public prin()
        {
            InitializeComponent();

            if (!Directory.Exists(Application.StartupPath + "/Data"))
            {
                DialogResult dialogResult = MessageBox.Show("Download Data Base", "Database not found", MessageBoxButtons.YesNo);
                if (dialogResult == DialogResult.Yes)
                {
                    Completa = new Base_Datos(Page, false);
                }
                else
                {
                    Application.Exit();
                }
            }
            else
            {
                Completa = new Base_Datos(Page, true);
            }
            Data_Mole.AutoGenerateColumns = true;
            Data_Mole.DataSource          = Completa.Moleculas;
        }
示例#2
0
 private void Update_Click(object sender, EventArgs e)
 {
     Image_Box.Image = null;
     Completa        = new Base_Datos(Page, false);
 }