Esempio n. 1
0
        private async Task<bool> LoadOptionOnMode()
        {
            bool retValue = false;

            var common = new Lib.ServiceModel.CommonModel();
            try
            {
                var result = await common.GetCWPByProject_Combo_Mobile(_projectid, _disciplineCode, Login.UserAccount.LoginName);
                _iwpoption.BindCwp(result);
                retValue = true;
            }
            catch (Exception e)
            {
                (new WinAppLibrary.Utilities.Helper()).ExceptionHandler(e, "Sigma LoadOptionOnMode", "There is a problem loading the drawings - Please try again later", "Error!");
            }

            //Login.MasterPage.SetBottomAppbar(WinAppLibrary.UI.MasterPage.BottomAppBarButton.Download, Visibility.Visible);
            //Login.MasterPage.AppbarClicked += MasterPage_AppbarClicked;
            
            return retValue;
        }
        private async Task<bool> LoadOptionOnMode()
        {
            bool retValue = false;

            var common = new Lib.ServiceModel.CommonModel();
            try
            {
                var result = await common.GetCWPByProject_Combo_Mobile(_projectid, _disciplineCode);
                _turnoverbinderoption.BindList(result);

                //var result = await common.GetCWPByProject_Combo_Mobile(_projectid, _disciplineCode);
                //_turnoverbinderoption.BindCwp(result);
                //retValue = true;
            }
            catch (Exception e)
            {
                (new WinAppLibrary.Utilities.Helper()).ExceptionHandler(e, "Sigma LoadOptionOnMode", "There was an error load drawing. Pleae contact administrator", "Error!");
            }

            //Login.MasterPage.SetBottomAppbar(WinAppLibrary.UI.MasterPage.BottomAppBarButton.Download, Visibility.Visible);
            //Login.MasterPage.AppbarClicked += MasterPage_AppbarClicked;

            return retValue;
        }