一个售卖系统,一个屏是收银员看,一个是给顾客看购买的商品的名称和金额等。

解决方案 »

  1.   

    BeTwin一台电脑变多台 绿色版(最多5台电脑)
      

  2.   

      /// 设置在第几个屏幕上启动。
            /// </summary>
            /// <param name="screen">屏幕(从0开始)</param>
            /// <param name="form">要启动的程序。</param>
            public void FormStartScreen(int screen,Form form)
            {
                if (Screen.AllScreens.Length <= 1)
                    return;
                if (Screen.AllScreens.Length < screen)
                    return;
                form.StartPosition = FormStartPosition.Manual;
                form.Location = new System.Drawing.Point(Screen.AllScreens[screen].Bounds.X, Screen.AllScreens[screen].Bounds.Y);
                form.WindowState = FormWindowState.Maximized;
            }        /// <summary>
            /// 默认在第1一个扩展屏幕上打开。
            /// </summary>
            /// <param name="form">要启动的程序。</param>
            public void FormStartScreen(Form form)
            {
                FormStartScreen(1, form);
            }
      

  3.   

    public Rectangle[] GetSplittedRectangles(Rectangle rt, int rowCount,int colCount)
      {
      Rectangle[] rects = new Rectangle[rowCount * colCount];
      int width = rt.Width / colCount;
      int height = rt.Height / rowCount;
      for (int rowIndex = 0; rowIndex < rowCount; rowIndex++)
      {
      for (int colIndex = 0; colIndex < colCount; colIndex++)
      {
      rects[rowIndex * colCount + colIndex] = new Rectangle(colIndex * width,
      rowIndex * height, width, height);
      }
      }
      return rects;
      }