예제 #1
0
        /// <summary>
        /// 最大化
        /// </summary>
        public static void setNetweightBig()
        {
            WeightWindow status = new WeightWindow();

            status.Size = enumWeighingWindowSize.BIG_SIZE;
            global.mm.Terminal.SetWeightWindowStatus(status);
        }
예제 #2
0
        ///设置窗体最小化
        public static void setNetweightsmall(string type)
        {
            if (global.mm == null)
            {
                return;
            }
            if (!global.mm.IsConnected)
            {
                return;
            }
            WeightWindow status = new WeightWindow();

            status.Size = enumWeighingWindowSize.SMALL_SIZE;
            switch (type)
            {
            case "上方":
                status.DockStyle = enumUIDockStyle.Up;
                break;

            case "下方":
                status.DockStyle = enumUIDockStyle.Bottom;
                break;

            case "不停靠":
                status.DockStyle = enumUIDockStyle.None;
                break;

            default:
                status.DockStyle = enumUIDockStyle.Up;
                break;
            }
            global.mm.Terminal.SetWeightWindowStatus(status);
        }