Example #1
0
        private void reset()
        {
            timer1.Stop();
            string  s   = oeid;
            UFrmSyt ufs = new UFrmSyt();

            ufs.oeid = s;
            this.Parent.Controls.Add(ufs);
            this.Parent.Controls.Remove(this);
        }
Example #2
0
 public void btn_syt_Click(object sender, EventArgs e)
 {
     if (Power == "1" || Power == "2" || Power == "6")
     {
         UFrmSyt syt = new UFrmSyt();
         syt.oeid = UserName;
         syt.Size = new System.Drawing.Size(splitContainer1.Panel1.Width, splitContainer1.Panel1.Height);
         splitContainer1.Panel1.Controls.Clear();
         splitContainer1.Panel1.Controls.Add(syt);
     }
     else
     {
         MessageBox.Show("您没有权限访问!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }