示例#1
0
 public void SetStatusStripInfo(System.Windows.Forms.StatusStrip stsStrip)
 {
     stsStrip.Items[0].Text  = string.Format("当前用户:{0}", UserInfo.LoginName);
     stsStrip.Items[0].Width = 200;
     stsStrip.Items[1].Text  = string.Format("当前时间:{0:yyyy-MM-dd HH:mm:ss}", GetDbDateTime.GetSystemDateTime());
     stsStrip.Items[1].Width = 200;
     stsStrip.Items[2].Text  = string.Format("当前主机名与IP:{0}", NetHelper.GetHostName() + "(" + NetHelper.GetIPAddress() + ")");
     stsStrip.Items[2].Width = 200;
     stsStrip.Items[3].Text  = string.Format("餐段:{0}", "中餐"); //CurrentSystemInfo.WorkShift.Name);
     stsStrip.Items[3].Width = 200;
     stsStrip.Items[4].Text  = string.Format("餐牌:{0}", CurrentSystemInfo.RestaurantType.Name);
     stsStrip.Items[4].Width = 200;
     stsStrip.Items[5].Text  = string.Format("销售点:{0}", CurrentSystemInfo.SalesPoint.Name);
     stsStrip.Items[5].Width = 200;
     stsStrip.Items[6].Text  = string.Format("版权所有:{0}", "CC");
     stsStrip.Items[6].Width = 200;
 }
示例#2
0
文件: frmMain.cs 项目: cang2016/RMS
 private void tmrTime_Tick(object sender, EventArgs e)
 {
     this.stsStrip.Items[1].Text = string.Format("当前时间:{0:yyyy-MM-dd HH:mm:ss}", GetDbDateTime.GetSystemDateTime());
 }