示例#1
0
        public frmCustomer()
        {
            InitializeComponent();
            cusFun = new frmCustomerFunction();
            empFun = new frmEmployeeFunction();
            dataGridView1.MultiSelect = false;

            Control[] tempRequire = { txtEn1, txtEn2, txtEmail, txtphone };
            requirement              = tempRequire;
            txtphone.TextMaskFormat  = MaskFormat.ExcludePromptAndLiterals;
            txtPhone2.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals;

            loadPlaceHolder();
        }
示例#2
0
        //BindingSource binding = new BindingSource();

        public frmCustomerDetail()
        {
            InitializeComponent();
            cusFun = new frmCustomerFunction();
            empFun = new frmEmployeeFunction();

            btnClr.Visible = false;
            itemPanel1.Items.Remove(itemContainer1);
            itemPanel1.Items.Remove(itemContainer4);

            //customersDataGridView.DataSource = binding;

            //Helper.BindGridView("SELECT * FROM Customers;", binding, customersDataGridView);
            //Helper.AutoFitColumns(customersDataGridView);
        }