private void FrmMain_Load(object sender, EventArgs e) { Moon = orzServer.MoonServer.GetServer(); record = orzServer.Record.GetServer(); timer.Elapsed += Timer_Elapsed; }
public static MoonServer GetServer() //获取实例 { if (Moon == null) { Moon = new MoonServer(); } return(Moon); }
private void Add_Load(object sender, EventArgs e) { switch (OpenMode) { case (int)orz.OpenMode.AddUser: break; case (int)orz.OpenMode.AddPrize: break; } Moon = orzServer.MoonServer.GetServer(); record = orzServer.Record.GetServer(); }
public DataView_Winners() { InitializeComponent(); Moon = orzServer.MoonServer.GetServer(); dtWinners = Moon.GetDTWinners(); }