コード例 #1
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ListViewItem lvi = listGudang.SelectedItems[0];

            for (int i = 0; i <= strGudang.Length - 1; i++)
            {
                if (i == 6)
                {
                    strGudang[6] = idGudang[Convert.ToInt32(lvi.SubItems[0].Text) - 1].ToString();
                }
                else
                {
                    strGudang[i] = lvi.SubItems[i + 2].Text;
                }
            }

            //strGudang[0] = lvi.SubItems[2].Text;
            //strGudang[1] = lvi.SubItems[3].Text;
            //strGudang[2] = lvi.SubItems[4].Text;
            //strGudang[3] = lvi.SubItems[5].Text;
            //strGudang[4] = lvi.SubItems[6].Text;
            //strGudang[5] = lvi.SubItems[7].Text;
            //strGudang[6] = lvi.SubItems[8].Text;
            isEdit = true;
            GudangInputForm gif = new GudangInputForm();

            gif.ShowDialog();
            ShowData();
            isEdit = false;
        }
コード例 #2
0
        private void btn_tambah_Click(object sender, EventArgs e)
        {
            GudangInputForm gif = new GudangInputForm();

            gif.ShowDialog();
            ShowData();
        }