Example #1
0
        public w_NormalDisplay()
        {
            InitializeComponent();

            plcIp     = ConfigurationManager.AppSettings["PLCIp"].ToString();
            db        = ConfigurationManager.AppSettings["DB"].ToString();
            imagePath = Application.StartupPath + @"\Resources";
            pno       = Convert.ToDecimal(ConfigurationManager.AppSettings["PNo"]);
            readTime  = Convert.ToInt32(ConfigurationManager.AppSettings["ReadTime"]);
            CheckForIllegalCrossThreadCalls = false;
            fontSize = Convert.ToInt32(ConfigurationManager.AppSettings["FontSize"]);
            oc       = new OpaqueCommand();
            oc.ShowOpaqueLayer(this, 125, true);
            BgwLoad.RunWorkerAsync();
            X = this.Width;  //获取窗体的宽度
            Y = this.Height; //获取窗体的高度
            SetTag(this);    //调用方法
        }
Example #2
0
        private void w_Main_Load(object sender, EventArgs e)
        {
            OpaqueCommand oc = new OpaqueCommand();

            oc.ShowOpaqueLayer(this, 0, true);
        }