예제 #1
0
        private void materialRaisedButton1_Click(object sender, EventArgs e)
        {
            KeuanganInputForm kif = new KeuanganInputForm();

            kif.ShowDialog();
            PopulateData();
        }
예제 #2
0
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listKeuangan.SelectedItems.Count > 1)
     {
         MessageBox.Show("Harap Pilih 1", "Warning !", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         isEdit      = true;
         dataPass[0] = listKeuangan.SelectedItems[0].SubItems[2].Text;
         dataPass[1] = listKeuangan.SelectedItems[0].SubItems[3].Text;
         dataPass[2] = listKeuangan.SelectedItems[0].SubItems[4].Text;
         dataPass[3] = id_keuangan[Convert.ToInt32(listKeuangan.SelectedItems[0].SubItems[0].Text) - 1].ToString();
         KeuanganInputForm kif = new KeuanganInputForm();
         kif.ShowDialog();
         isEdit = false;
         PopulateData();
     }
 }