예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            SuppyAddress suppyAddress = new SuppyAddress();

            SuppyAddress_AddEdit aesuppyAddress = new SuppyAddress_AddEdit(suppyAddress);

            if (aesuppyAddress.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                loadData();
        }
예제 #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            SuppyAddress suppyAddress = new SuppyAddress();

            SuppyAddress_AddEdit aesuppyAddress = new SuppyAddress_AddEdit(suppyAddress);

            if (aesuppyAddress.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                loadData();
            }
        }
예제 #3
0
        private void _dgvSuppyAddress_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int idSuppyAddress = 0;
            int.TryParse(_dgvSuppyAddress.Rows[_dgvSuppyAddress.CurrentCell.RowIndex].Cells[0].Value.ToString(), out idSuppyAddress);

            SuppyAddress suppyAddress = suppyAddressList.getItem(idSuppyAddress);

            SuppyAddress_AddEdit aesuppyAddress = new SuppyAddress_AddEdit(suppyAddress);

            if (aesuppyAddress.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                loadData();
        }
예제 #4
0
        private void _dgvSuppyAddress_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int idSuppyAddress = 0;

            int.TryParse(_dgvSuppyAddress.Rows[_dgvSuppyAddress.CurrentCell.RowIndex].Cells[0].Value.ToString(), out idSuppyAddress);

            SuppyAddress suppyAddress = suppyAddressList.getItem(idSuppyAddress);

            SuppyAddress_AddEdit aesuppyAddress = new SuppyAddress_AddEdit(suppyAddress);

            if (aesuppyAddress.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                loadData();
            }
        }