partial void OnApiKeySaverClicked(NSObject sender) { var res = SecKeyChainUtil.RegisterGoogleApiKey(this.googleApiKey.StringValue); if (res.IsError) { notifyToUser("保存に失敗", res.ErrorMessage); } }
public override void ViewDidLoad() { base.ViewDidLoad(); this.monitor = new PasteboardStringMonitor(NSPasteboard.GeneralPasteboard, this.onPasteboardStringChanged); this.googleApiKey.StringValue = SecKeyChainUtil.GetGoogleApiKey(); }