-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
概要
プレゼンタイマー時間に文字列などフォーマットに合わないものを入力した時に空白になる、これを変更したい。

理想動作
フォーマットに合わないものを入力した時に
「正しい値を入力してください」
とアラート(メッセージボックスなど)を出して、前回までに入力されていた値に戻す。
実装方法
現時点(v1.0)、以下のコード部分でフォーマットに合わない場合空白を挿入する処理をしている。(elseの行)
namespace PptTimerAddin
{
public partial class Ribbon
{
...
private void editBox_TextChanged(object sender, RibbonControlEventArgs e)
{
int tmp = -1;
string s = editBox.Text;
if (int.TryParse(s,out tmp) &&(0 < tmp && tmp <= 100))
{
presentationTime = tmp;
}
else
{
editBox.Text = "";
}
}
...
}
}このelse内でなんらかの処理を行えばよさげだと思う。
「やってやるよ」という優しい方
コメントをくだされば喜んでアサインします。
developブランチから新しくfeatureブランチを生やして作業をお願いします。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers