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(); } }
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(); }
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); }