Пример #1
0
        private void addHDB_Click(object sender, EventArgs e)
        {
            var server = OracleServer.ConnectToOracle();

            if (server != null)
            {
                Hdb.Instance = new Hdb(server);
                var dlg = new HdbPoet.FormAddSeries();
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    HdbPoet.Properties.Settings.Default.Save();
                    ImportFromHdb.Import(dlg.DataSet, DB, CurrentFolder);
                    DatabaseChanged();
                }
            }
        }
Пример #2
0
        private void addHDB_Click(object sender, EventArgs e)
        {
            #if !PISCES_OPEN
            var server = OracleServer.ConnectToOracle();

            if (server != null )
            {
                Hdb.Instance = new Hdb(server);
                var dlg = new HdbPoet.FormAddSeries();
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    HdbPoet.Properties.Settings.Default.Save();
                    ImportFromHdb.Import(dlg.DataSet, DB, CurrentFolder);
                    DatabaseChanged();
                }
            }
            #endif
        }