コード例 #1
0
ファイル: Program.cs プロジェクト: PDS-West/Group3DP2
        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());
        }
コード例 #2
0
ファイル: AddOrderForm.cs プロジェクト: relf108/Group3DP2
 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");
     }
 }
コード例 #3
0
 private void button1_click(object sender, EventArgs e)
 {
     MessageBox.Show("Inserted record");
     RecordFunctions.InsertRecord(name: "testItem", value: 4, "2001-02-12");
 }