Exemple #1
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();
     }
 }
Exemple #2
0
        public SettingRobotForm()
        {
            InitializeComponent();
            this.SetupTree();

            this.OnSaveClicked  += SettingRobotForm_OnSaveClicked;
            this.OnResetClicked += SettingRobotForm_OnResetClicked;
            if (Machine.Instance.Robot.DefaultPrm != null)
            {
                this.DefaultPrmBackUp = (RobotDefaultPrm)Machine.Instance.Robot.DefaultPrm.Clone();
            }
            this.ReadLanguageResources();
        }
Exemple #3
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);
        }