Exemple #1
0
        void TambahRusak()
        {
            TambahRusak TA = new TambahRusak();

            if (dgvAlat.Rows.Count == 0)
            {
                MessageBox.Show("Data belum ada yang dipilih. ", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            else
            {
                TA.TxtKodeRusak.Text        = this.dgvAlat.CurrentRow.Cells[1].Value.ToString();
                TA.TxtNama_alat_Rusak.Text  = this.dgvAlat.CurrentRow.Cells[2].Value.ToString();
                TA.TxtJenis_Alat_Rusak.Text = this.dgvAlat.CurrentRow.Cells[3].Value.ToString();
                TA.TxtLetakRusak.Text       = this.dgvAlat.CurrentRow.Cells[4].Value.ToString();
                TA.ShowDialog();
                dgvAlat.Refresh();
            }
        }
Exemple #2
0
        private void BtnTambah_Click(object sender, EventArgs e)
        {
            TambahRusak TA = new TambahRusak();

            TA.ShowDialog();
        }