protected override void OnContentRendered(EventArgs e) { base.OnContentRendered(e); System.Windows.Forms.Keys hotKey = System.Windows.Forms.Keys.X; Enum.TryParse(NTMinerRoot.GetHotKey(), out hotKey); string message; if (!RegHotKey(hotKey, out message)) { NotiCenterWindowViewModel.Current.Manager .CreateMessage() .Error(message) .Dismiss().WithButton("忽略", null) .Queue(); } }