Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        private void btnEditProperty_Click(object sender, EventArgs e)
        {
            AddProperty ap = new AddProperty();

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

            MyPhotos.Property prop = new MyPhotos.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();
        }