示例#1
0
        private void addAssignToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new AssetMaintenance();

            frm.ShowDialog();
            PopulateAssets();
        }
示例#2
0
        private void editAssignToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // get asset from the grid
            var asset = (Asset)uxAssets.CurrentRow.DataBoundItem;

            // pass it to the constructor of the maintenance form
            var frm = new AssetMaintenance(asset);

            frm.ShowDialog();
            PopulateAssets();
        }