Beispiel #1
0
 private void LabelService_SettingsEvent1()
 {
     DesktopService.GetDesktop((short)(User.DesktopCount - 1)).LabelCount--;
     if (DesktopService.DesktopRepositori.GetDesktop((short)(User.DesktopCount - 1)).LabelCount > 0)
     {
         if (DesktopIndex == User.DesktopCount - 1)
         {
             LoadLabels();
             LoadNoneLabel();
         }
         else
         {
             LoadLabels();
         }
     }
     else if (DesktopService.DesktopRepositori.GetDesktop((short)(User.DesktopCount - 1)).LabelCount == 0)
     {
         if (DesktopIndex == User.DesktopCount - 1)
         {
             LoadLabels();
             LoadNoneLabel();
         }
         else
         {
             LoadLabels();
         }
     }
     else
     {
         DesktopService.DeleteLastDesktop();
         User.DesktopCount--;
         DesktopService.GetDesktop((short)(User.DesktopCount - 1)).LabelCount--;
         if (DesktopIndex > User.DesktopCount - 1)
         {
             DesktopIndex--;
             RightButtonFlag = false;
             LoadLabels();
             LoadNoneLabel();
         }
         else if (DesktopIndex == User.DesktopCount - 1)
         {
             RightButtonFlag = false;
             LoadLabels();
             LoadNoneLabel();
         }
         else
         {
             LoadLabels();
         }
     }
 }