Exemplo n.º 1
0
 /// @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 SetWarning(SWScale name, string message = null)
 {
     TextBoxError.SetWarning(this.GetTextBox(name), this.GetToolTip(name), message);
 }
        //===================================================================
        // 入力エラー処理
        //===================================================================

        /// enumを指定してTextBoxのエラー状態解除
        private void ResetError(SWScale name)
        {
            TextBoxError.ResetError(this.GetTextBox(name), this.GetToolTip(name));
        }
 /// enumを指定してTextBoxのエラー状態設定
 private void SetError(BoundRelative name, string message = null)
 {
     TextBoxError.SetError(this.GetTextBox(name), this.GetToolTip(name), message);
 }
        //===================================================================
        // 入力エラー処理
        //===================================================================

        /// enumを指定してTextBoxのエラー状態解除
        private void ResetError(BoundRelative name)
        {
            TextBoxError.ResetError(this.GetTextBox(name), this.GetToolTip(name));
        }
Exemplo n.º 6
0
 /// enumを指定してTextBoxのエラー状態設定
 private void SetError(Clipping name, string message = null)
 {
     TextBoxError.SetError(this.GetTextBox(name), this.GetToolTip(name), message);
 }
Exemplo n.º 7
0
        //===================================================================
        // 入力エラー処理
        //===================================================================

        /// enumを指定してTextBoxのエラー状態解除
        private void ResetError(Clipping name)
        {
            TextBoxError.ResetError(this.GetTextBox(name), this.GetToolTip(name));
        }