Beispiel #1
0
        partial void OnApiKeySaverClicked(NSObject sender)
        {
            var res = SecKeyChainUtil.RegisterGoogleApiKey(this.googleApiKey.StringValue);

            if (res.IsError)
            {
                notifyToUser("保存に失敗", res.ErrorMessage);
            }
        }
Beispiel #2
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     this.monitor = new PasteboardStringMonitor(NSPasteboard.GeneralPasteboard, this.onPasteboardStringChanged);
     this.googleApiKey.StringValue = SecKeyChainUtil.GetGoogleApiKey();
 }