private void Add_Property_Click(object sender, EventArgs e) { msgLabel.Text = ""; if (SelectedPhotoid == -1) { msgLabel.Text = "Please select a photo to add property to."; return; } AddProp addP = new AddProp(SelectedPhotoid); addP.ShowDialog(); if (addP.numeProp == null || addP.valProp == null) { msgLabel.Text = "Somthing went wrong."; return; } var result = apiProp.AddProprietate(SelectedPhotoid, addP.numeProp, addP.valProp); msgLabel.Text = result; Show_Property_Click(this, null); }
/// string InterfaceProperty.AddProprietateWCF(int photoid, string numeProp, string valoareProp) { apiProprietate apiProprietate = new apiProprietate(); return(apiProprietate.AddProprietate(photoid, numeProp, valoareProp)); }