Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 68 additions & 16 deletions BuffettCodeAddinRibbon/SettingForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions BuffettCodeAddinRibbon/SettingForm.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BuffettCodeAddinRibbon.Settings;
using BuffettCodeCommon.Config;
using System;
using System.Windows.Forms;

Expand Down Expand Up @@ -84,6 +85,31 @@ private void TabAPI_Click(object sender, EventArgs e)

}

private void textAPIKey_TextChanged(object sender, EventArgs e)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消してもGUIからいじると復活してしまうっぽいので今回はこのままいきます

{

}

private void ondemandModeDescDesc_TextChanged(object sender, EventArgs e)
{

}

private void apiSpecialNotes_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
// mark as visited
apiSpecialNotesLink.LinkVisited = true;
// open link using a default browser
System.Diagnostics.Process.Start(ApiRelatedUrlConfig.API_SPECIAL_NOTES);

}

private void ondemandUsageEntryLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
// mark as visited
ondemandUsageEntryLink.LinkVisited = true;
// open link using a default browser
System.Diagnostics.Process.Start(ApiRelatedUrlConfig.ONDEMAND_API_USAGE_ENTRY);
}
}
}
17 changes: 10 additions & 7 deletions BuffettCodeAddinRibbon/SettingForm.resx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Expand Down Expand Up @@ -117,10 +117,13 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="useOndemandCheckBox.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="useOndemandCheckBox.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<data name="ondemandModeDesc.Text" xml:space="preserve">
<value>必要に応じて、バフェット・コードの従量課金エンドポイントを利用するようになります。


従量課金エンドポイントを利用すると、定額料金の範囲(直近5年)より過去の財務数値を取得することができるようになります。
財務数値の取得に従量課金のエンドポイントを利用する必要性の有無は、エクセルアドイン内部で都度判定します。
従量課金エンドポイントを利用すると、月額利用料とは別に1回のAPIコールあたり8.8円(税込)が課金されますのでご注意ください。
詳細や注意事項、FAQについては下記をご確認ください。</value>
</data>
</root>
6 changes: 6 additions & 0 deletions BuffettCodeCommon/Config/BuffettCodeApiConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ public static class ApiErrorMessageConfig
{
public static readonly string TEST_API_CONSTRAINT = "Testing Apikey is only allowed to ticker ending with";
}

public static class ApiRelatedUrlConfig
{
public static readonly string API_SPECIAL_NOTES = "https://www.buffett-code.com/legal/web_api/special_notes";
public static readonly string ONDEMAND_API_USAGE_ENTRY = "https://blog.buffett-code.com/entry/ondemand_api_usage";
}
}