예제 #1
0
 //   public static int count;
 public Homepage()
 {
     InitializeComponent();
     Sum = SceneryAccess.SceneryCount();
     if (Sum % 12 == 0)
     {
         Sum = Sum / 12;
     }
     else
     {
         Sum = Sum / 12 + 1;
     }
 }
예제 #2
0
 public Homepage(int userID)
 {
     InitializeComponent();
     UserId = userID;
     this.lbLoginstate.Text = userID + "";
     Sum = SceneryAccess.SceneryCount();
     if (Sum % 12 == 0)
     {
         Sum = Sum / 12;
     }
     else
     {
         Sum = Sum / 12 + 1;
     }
 }