Beispiel #1
0
 public QueryForm()
 {
     InitializeComponent();
     odb       = OracleDatabase.GetInstance();
     tableName = new ListDialog();
     tableName.Update(odb.Connection);
 }
 public static OracleDatabase GetInstance()
 {
     if (mInstance == null)
     {
         mInstance = new OracleDatabase();
     }
     return(mInstance);
 }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            OracleDatabase od  = OracleDatabase.GetInstance();
            string         sql = "user id=" + username.Text
                                 + ";password="******";data source=" + dataSource.Text;

            if (od.Connect(sql))
            {
                MessageBox.Show("Success!");
                RootWindow wd = RootWindow.GetWindow();

                wd.CreateSession();
            }
        }
Beispiel #4
0
 private RootWindow()
 {
     InitializeComponent();
     odb = OracleDatabase.GetInstance();
 }