예제 #1
0
        public async void DeleteControlLogInDb()
        {
            try
            {
                // await Dbcontext.OpenAsync();
                var result = Dbcontext.DeleteOfficeInternalControlPerformControl(Application.Current.Properties["UN"].ToString(),
                                                                                 Application.Current.Properties["PW"].ToString(), Application.Current.Properties["Ucid"].ToString(), IniControlLogId);

                await Application.Current.MainPage.DisplayAlert("Information", result, "Stäng");

                await Application.Current.MainPage.Navigation.PopAsync();
            }
            catch (Exception e)
            {
                // await Dbcontext.CloseAsync();
                await Application.Current.MainPage.DisplayAlert("Fel", e.Message, "Stäng");
            }

            //  Dbcontext = new ServiceReference1.Service1Client(ServiceReference1.Service1Client.EndpointConfiguration.BasicHttpBinding_IService1);



            GetControlRows();
        }