Exemplo n.º 1
0
 void client_GetCheckPointLevelSetByPrimaryIDCompleted(object sender, GetCheckPointLevelSetByPrimaryIDCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != null)
     {
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("FINDERROR"), Utility.GetResourceStr(e.Error.Message));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         PointLevel = e.Result;
         this.DtGrid.ItemsSource = null;
         this.DtGrid.ItemsSource = PointLevel;
     }
 }
Exemplo n.º 2
0
        void client_GetCheckPointLevelSetByPrimaryIDCompleted(object sender, GetCheckPointLevelSetByPrimaryIDCompletedEventArgs e)
        {
            List <T_HR_CHECKPOINTLEVELSET> list = new List <T_HR_CHECKPOINTLEVELSET>();

            if (e.Error != null && e.Error.Message != "")
            {
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
            }
            dtgPointLevel.ItemsSource = list;
        }
Exemplo n.º 3
0
 void client_GetCheckPointLevelSetByPrimaryIDCompleted(object sender, GetCheckPointLevelSetByPrimaryIDCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != null)
     {
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("FINDERROR"), Utility.GetResourceStr(e.Error.Message));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         PointLevel = e.Result;
         this.DtGrid.ItemsSource = null;
         this.DtGrid.ItemsSource = PointLevel;
     }
 }
Exemplo n.º 4
0
 void client_GetCheckPointLevelSetByPrimaryIDCompleted(object sender, GetCheckPointLevelSetByPrimaryIDCompletedEventArgs e)
 {
     List<T_HR_CHECKPOINTLEVELSET> list = new List<T_HR_CHECKPOINTLEVELSET>();
     if (e.Error != null && e.Error.Message != "")
     {
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result != null)
         {
             list = e.Result.ToList();
         }
     }
     dtgPointLevel.ItemsSource = list;
 }