Esempio n. 1
0
        public PageSetupSensors()
        {
            InitializeComponent();
            this.ShowBorder = false;
            //this.ReadLanguageResources();
            this.settingLaser   = new SettingLaserControl().Setup();
            this.settingScale   = new SettingScaleControl().Setup();
            this.settingPropors = new SettingProportionerControl().Setup();
            this.settingScanner = new SettingBarcodeScanControl(0).Setup();
            this.settingHeater  = new SettingHeaterControl().Setup();

            this.setupTree();
            this.setupGroupBoxCom();
            this.btnHeight_Click(null, null);

            Control[] controls  = this.Controls.Find(this.label2.Name, true);
            Control[] controls2 = this.Controls.Find(this.label4.Name, true);
            this.timer          = new Timer();
            this.timer.Interval = 100;
            this.timer.Tick    += Timer_Tick;
            this.timer.Start();

            //权限加载
            this.accessExecutor = new AccessExecutor(this);
            this.LoadAccess();
            AccessControlMgr.Instance.Register(this);
        }
Esempio n. 2
0
 public PageJobsFluid()
 {
     InitializeComponent();
     //权限
     this.accessExecutor = new AccessExecutor(this);
     this.LoadAccess();
     AccessControlMgr.Instance.Register(this);
 }
Esempio n. 3
0
 public PageSetupAccess()
 {
     InitializeComponent();
     this.initialDgvComponent();
     //权限加载
     this.accessExecutor = new AccessExecutor(this);
     this.LoadAccess();
     AccessControlMgr.Instance.Register(this);
 }
Esempio n. 4
0
 public PageSystemCPK()
 {
     InitializeComponent();
     this.ShowBorder = false;
     //权限加载
     this.accessExecutor = new AccessExecutor(this);
     this.LoadAccess();
     AccessControlMgr.Instance.Register(this);
 }
Esempio n. 5
0
 public PageSetupMachine()
 {
     InitializeComponent();
     this.ShowBorder = false;
     this.propertyGrid1.SelectedObject = Machine.Instance.Setting;
     if (Machine.Instance.Setting != null)
     {
         this.SettingBackUp = (MachineSetting)Machine.Instance.Setting.Clone();
     }
     //权限加载
     this.accessExecutor = new AccessExecutor(this);
     this.LoadAccess();
     AccessControlMgr.Instance.Register(this);
 }
Esempio n. 6
0
        public PageSetupValves()
        {
            InitializeComponent();
            this.ShowBorder = false;
            this.cmbValveSelect.SelectedIndexChanged   += CmbValveSelect_SelectedIndexChanged;
            this.metroSetListBox1.SelectedIndexChanged += MetroSetListBox1_SelectedIndexChanged;;
            this.metroSetListBox2.SelectedIndexChanged += MetroSetListBox2_SelectedIndexChanged;;
            //this.ReadLanguageResources();

            this.setup();
            //权限加载
            this.accessExecutor = new AccessExecutor(this);
            this.LoadAccess();
            AccessControlMgr.Instance.Register(this);
        }
Esempio n. 7
0
        public PageSetupWeight()
        {
            InitializeComponent();
            this.ShowBorder = false;
            UserControlWeight ucw = new UserControlWeight();

            ucw.ForeColor = Color.Black;
            this.Controls.Add(ucw);
            ucw.Setup();

            //权限加载
            this.accessExecutor = new AccessExecutor(this);
            this.LoadAccess();
            AccessControlMgr.Instance.Register(this);
        }
Esempio n. 8
0
        public PageSetupRobot()
        {
            InitializeComponent();
            this.ShowBorder = false;
            if (Machine.Instance.Robot != null)
            {
                this.propertyGrid1.SelectedObject = Machine.Instance.Robot.DefaultPrm;
            }
            if (Machine.Instance.Robot.DefaultPrm != null)
            {
                this.DefaultPrmBackUp = (RobotDefaultPrm)Machine.Instance.Robot.DefaultPrm.Clone();
            }

            //权限加载
            this.accessExecutor = new AccessExecutor(this);
            this.LoadAccess();
            AccessControlMgr.Instance.Register(this);
        }
Esempio n. 9
0
        public PageSystemHeater()
        {
            InitializeComponent();
            this.ShowBorder = false;

            //权限加载
            this.accessExecutor = new AccessExecutor(this);
            this.LoadAccess();
            AccessControlMgr.Instance.Register(this);

            FormThermostat form = new FormThermostat();

            form.TopLevel        = false;
            form.Parent          = this;
            form.FormBorderStyle = FormBorderStyle.None;
            form.ForeColor       = Color.Black;
            form.StartPosition   = FormStartPosition.CenterParent;
            form.Show();
        }
Esempio n. 10
0
        public PageSetupConveyors()
        {
            InitializeComponent();
            this.ShowBorder = false;

            //权限加载
            this.accessExecutor = new AccessExecutor(this);
            this.LoadAccess();
            AccessControlMgr.Instance.Register(this);

            ConveyorSettingForm form = new ConveyorSettingForm(2);

            form.TopLevel        = false;
            form.Parent          = this;
            form.FormBorderStyle = FormBorderStyle.None;
            form.ForeColor       = Color.Black;
            form.StartPosition   = FormStartPosition.CenterParent;
            form.Show();
        }
Esempio n. 11
0
        public PageSetupAxes()
        {
            InitializeComponent();
            this.ShowBorder = false;
            this.btnX.Mode  = MetroSet_UI.Enums.ButtonMode.Selected;
            this.btnY.Mode  = MetroSet_UI.Enums.ButtonMode.Selected;
            this.btnZ.Mode  = MetroSet_UI.Enums.ButtonMode.Selected;
            this.btnA.Mode  = MetroSet_UI.Enums.ButtonMode.Selected;
            this.btnB.Mode  = MetroSet_UI.Enums.ButtonMode.Selected;

            this.axisControl1.HomeClicked += AxisControl_HomeClicked;

            this.btnX_Click(null, null);

            this.timer          = new Timer();
            this.timer.Interval = 50;
            this.timer.Tick    += Timer_Tick;
            this.timer.Start();

            //权限加载
            this.accessExecutor = new AccessExecutor(this);
            this.LoadAccess();
            AccessControlMgr.Instance.Register(this);
        }