/// <summary> /// 作成締日のテキストが変更された時のイベント処理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ClosingDate_TextChanged(object sender, RoutedEventArgs e) { UcLabelTextBox tb = sender as UcLabelTextBox; // 作成締日が空値の場合に自動で全締日をチェック // 値が設定された場合は自動でチェックオフにする isPaymentAllDays.IsChecked = string.IsNullOrWhiteSpace(tb.Text); }
/// <summary> /// 登録項目の入力完了時に動作 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UcLabelTextBox_PreviewKeyDown(object sender, KeyEventArgs e) { UcLabelTextBox tb = sender as UcLabelTextBox; if (e.Key == Key.Enter && !string.IsNullOrEmpty(tb.cText)) { OnF9Key(sender, null); } }