private void deleteOrder_Click(object sender, EventArgs e)
 {
     if (conn.sendCommand(conn.deleteOrder(o.getOid())) == true)
     {
         MessageBox.Show("Order deleted !");
         deleteOrder.Enabled = false;
         update.Enabled      = false;
     }
     else
     {
         MessageBox.Show("Oops something went wrong :( !");
     }
 }
        public string insertOrder(OrderObj o)
        {
            string query = @"INSERT INTO orders VALUES('" + o.getOid() + "','" + o.getUid() + "','" + o.getDetails() + "','" + o.getStatus() + "');";

            Console.WriteLine(query);
            return(query);
        }
 public adminViewOrder(OrderObj o)
 {
     InitializeComponent();
     this.o       = o;
     conn         = new DbConnection();
     oid.Text     = o.getOid();
     uid.Text     = o.getUid();
     details.Text = o.getDetails();
     setCB();
 }
 public adminViewOrder(OrderObj o, bool isAdmin)
 {
     InitializeComponent();
     this.o       = o;
     conn         = new DbConnection();
     oid.Text     = o.getOid();
     uid.Text     = o.getUid();
     details.Text = o.getDetails();
     setCB();
     update.Visible      = false;
     deleteOrder.Visible = false;
     comboBox1.Enabled   = false;
 }