Ejemplo n.º 1
0
 public Login()
 {
     InitializeComponent();
     oraAPP = new OracleApp();
     conn = new OracleConnection(oraAPP.getOracleConnectionString());
     conn.Open();
     cmd = new OracleCommand();
     cmd.Connection = conn;
 }
Ejemplo n.º 2
0
 public Register()
 {
     InitializeComponent();
     rnd = new Random();
     randomCustomerNumber = rnd.Next(12345, 98765);
     oraAPP = new OracleApp();
     conn = new OracleConnection(oraAPP.getOracleConnectionString());
     conn.Open();
     cmd = new OracleCommand();
     cmd.Connection = conn;
 }
Ejemplo n.º 3
0
        public AdminPanel()
        {
            InitializeComponent();

            rnd = new Random();
            oraAPP = new OracleApp();
            conn = new OracleConnection(oraAPP.getOracleConnectionString());
            conn.Open();
            cmd = new OracleCommand();
            cmd.Connection = conn;
            updateGridView();
        }
        public CustomerOrders()
        {
            InitializeComponent();

            oraAPP = new OracleApp();
            CustomerNumber = oraAPP.GetGlobalVar();
            conn = new OracleConnection(oraAPP.getOracleConnectionString());
            conn.Open();
            cmd = new OracleCommand();
            cmd.Connection = conn;
            updateOrdersGridView();
        }
Ejemplo n.º 5
0
 public Store()
 {
     InitializeComponent();
     rnd = new Random();
     randomOrderID = rnd.Next(1234, 9876);
     oraAPP = new OracleApp();
     CustomerNumber = oraAPP.GetGlobalVar();
     conn = new OracleConnection(oraAPP.getOracleConnectionString());
     conn.Open();
     cmd = new OracleCommand();
     cmd.Connection = conn;
     updateStoreGridView();
 }