private void Init()
{
try
{
UpdateAndwhoData();
screenRect = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea;
//程序启动后,窗体在屏幕右侧中部
this.Left = screenRect.Right-this.Width;
this.Top = (screenRect.Bottom - this.Height) / 2;
navigationForm = new NavigationForm();
calendarForm = new CalendarForm();
PhysicalMemoryTimer_Tick(null, null);
System.Windows.Forms.Timer PhysicalMemoryTimer = new System.Windows.Forms.Timer();
PhysicalMemoryTimer.Tick += new EventHandler(PhysicalMemoryTimer_Tick);
PhysicalMemoryTimer.Interval = 3000;//时间
PhysicalMemoryTimer.Enabled = true;
System.Windows.Forms.Timer StopRectTimer = new System.Windows.Forms.Timer();
StopRectTimer.Tick += new EventHandler(StopRectTimer_Tick);
StopRectTimer.Interval = 1000;//时间
StopRectTimer.Enabled = true;
CheckNewVersion();
}
catch
{
}
}