/// @copydoc IBindingProfile::OnCurrentLayoutElementChanged public void OnCurrentLayoutElementChanged() { this.CanChangeProfile = false; if (!App.Profile.Current.IsWindowValid) { TextBoxError.SetError(this.WindowCaption); } else { TextBoxError.ResetError(this.WindowCaption); } this.WindowCaption.Text = StringConverter.GetWindowCaption(App.Profile.Current); this.CanChangeProfile = true; }
/// enumを指定してTextBoxのエラー状態設定 private void SetError(SWScale name, string message = null) { TextBoxError.SetError(this.GetTextBox(name), this.GetToolTip(name), message); }
/// enumを指定してTextBoxのエラー状態設定 private void SetError(BoundRelative name, string message = null) { TextBoxError.SetError(this.GetTextBox(name), this.GetToolTip(name), message); }