// public static int count; public Homepage() { InitializeComponent(); Sum = SceneryAccess.SceneryCount(); if (Sum % 12 == 0) { Sum = Sum / 12; } else { Sum = Sum / 12 + 1; } }
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; } }