public override void Loaded(DbItemRemoteLink itemRemoteLink) { var itemRdpSetting = DatabaseServices.GetRemoteSetting(itemRemoteLink) as DbItemSettingRdp; if (itemRdpSetting != null) { _remoteName = itemRemoteLink.Name; DataContext = itemRdpSetting; ItemSetting = itemRdpSetting; itemRdpSetting.PropertyChanged += PropertyChanged; PART_Utility.Loaded(itemRemoteLink); } }
public SettingRdp() { InitializeComponent(); DataContext = null; PART_Utility.AddDeskSize(CommonServices.DesktopSizes); if (CommonServices.OSVersion <= 6.1f) { PART_Recording.IsEnabled = false; //win8以下 不能设置录音 } AddUtilityButton(PART_Main, 15, 2, 1, 1); base.ResetButton_Click += ResetButton_Click; base.DefaultButton_Click += DefaultButton_Click; }
public override void UnLoaded() { PART_Utility.UnLoaded(); }
public override void Loaded(DbItemRemoteLink itemRemoteLink) { PART_Utility.Loaded(itemRemoteLink); }
public override void UnLoaded() { PART_Utility.UnLoaded(); ItemSetting.PropertyChanged -= PropertyChanged; }