示例#1
0
 public Login()
 {
     InitializeComponent();
     oraAPP = new OracleApp();
     conn = new OracleConnection(oraAPP.getOracleConnectionString());
     conn.Open();
     cmd = new OracleCommand();
     cmd.Connection = conn;
 }
 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;
 }
        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();
        }
示例#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();
 }