Пример #1
0
        private void UbahTSB_Click(object sender, EventArgs e)
        {
            muom K = new muom();

            K.UOMID       = txtUomID.Text;
            K.Description = txtDescription.Text;
            K.Active      = Convert.ToInt32(txtActive.Text);
            if (new muomCRUD().updateData(txtUomID.Text, K))
            {
                MessageBox.Show("Data berhasil di update");
                Binding();
            }
            else
            {
                MessageBox.Show("Gagal update data");
            }
        }
Пример #2
0
        private void SimpanTSB_Click(object sender, EventArgs e)
        {
            muom K = new muom();

            K.UOMID       = txtUomID.Text;
            K.Description = txtDescription.Text;
            K.Active      = Convert.ToInt32(txtActive.Text);

            if (new muomCRUD().insertData(K))
            {
                MessageBox.Show("Data berhasil di tambahkan");
                Binding();
            }
            else
            {
                MessageBox.Show("Data gagal ditambahkan");
            }
        }