コード例 #1
0
        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);
        }
コード例 #2
0
        ///

        string InterfaceProperty.AddProprietateWCF(int photoid, string numeProp, string valoareProp)
        {
            apiProprietate apiProprietate = new apiProprietate();

            return(apiProprietate.AddProprietate(photoid, numeProp, valoareProp));
        }