Ejemplo n.º 1
0
        static void Main()
        {
            //Example code
            InitDB();
            RecordFunctions.InsertRecord("record name", 4.7, "2343-33-55");
            RecordFunctions.PrintRows();
            RecordFunctions.exportTable(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "exporteddb");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
Ejemplo n.º 2
0
 private void AddCurOrder(object sender, EventArgs e)
 {
     if (curOrder.Count > 0)
     {
         int orderid = RecordFunctions.getOrderID() + 1;
         for (int i = 0; i < curOrder.Count; i++)
         {
             RecordFunctions.InsertRecord(orderid, curOrder[i].name, curOrder[i].value, DateTime.Now.ToString());
         }
         curOrder = new List <Item>();
         PopulateOrder();
     }
     else
     {
         MessageBox.Show("No item selected");
     }
 }
Ejemplo n.º 3
0
 private void button1_click(object sender, EventArgs e)
 {
     MessageBox.Show("Inserted record");
     RecordFunctions.InsertRecord(name: "testItem", value: 4, "2001-02-12");
 }