示例#1
0
        private void btnAddProperty_Click(object sender, EventArgs e)
        {
            AddProperty ap = new AddProperty();

            ap.FormClosing += new FormClosingEventHandler(Ap_FormClosing);
            ap.setFileId    = setId;
            ap.ShowDialog();
        }
示例#2
0
        private void btnEditProperty_Click(object sender, EventArgs e)
        {
            AddProperty ap = new AddProperty();

            ap.FormClosing += new FormClosingEventHandler(Ap_FormClosing);
            ap.setFileId    = setId;

            Property prop = new Property();

            prop.Id    = Guid.Parse(propertiesGridView.SelectedRows[0].Cells[0].Value.ToString());
            prop.Key   = propertiesGridView.SelectedRows[0].Cells[1].Value.ToString();
            prop.Value = propertiesGridView.SelectedRows[0].Cells[2].Value.ToString();

            ap.setProperty = prop;
            ap.ShowDialog();
        }