示例#1
0
        private void frmShopInfo_Load(object sender, EventArgs e)
        {
            DataTable shopinfo = ShopInfo_BUS.GetShopInfo();

            tbWifi.Text     = shopinfo.Rows[0]["Wifi"].ToString();
            tbName.Text     = shopinfo.Rows[0]["Name"].ToString();
            tbAddress.Text  = shopinfo.Rows[0]["Address"].ToString();
            tbPhone.Text    = shopinfo.Rows[0]["Phone"].ToString();
            tbFacebook.Text = shopinfo.Rows[0]["Facebook"].ToString();
            tbTime.Text     = shopinfo.Rows[0]["OpenAndCloseTime"].ToString();
        }
示例#2
0
 //ProcessStartInfo startInfo = new ProcessStartInfo();
 public frmService()
 {
     InitializeComponent();
     btnCancel.Visible      = false;
     btnSave.Visible        = false;
     btnConfirmMove.Visible = false;
     btnCancelMove.Visible  = false;
     btnAddInfo.Enabled     = false;
     btnReduce.Enabled      = false;
     tableofbill.Columns.Add("IdTable", Type.GetType("System.Int32"));
     movingtable.Columns.Add("IdTable", Type.GetType("System.Int32"));
     billInfo.Columns.Add("Id", Type.GetType("System.Int32"));
     billInfo.Columns.Add("IdBill", Type.GetType("System.Int32"));
     billInfo.Columns.Add("IdFood", Type.GetType("System.Int32"));
     billInfo.Columns.Add("NameUnit");
     billInfo.Columns.Add("FoodName");
     billInfo.Columns.Add("Number", Type.GetType("System.Int32"));
     billInfo.Columns.Add("Total", Type.GetType("System.Int32"));
     gcBillInfo.DataSource = billInfo;
     shopinfo = ShopInfo_BUS.GetShopInfo();
 }