示例#1
0
        private void mouseup(object sender, RoutedEventArgs e)
        {
            e.Handled = false;

            if (__memberExpression.Parent == null)
            {
                __ctrl.IsChecked = false;
            }
            else
            {
                //__ctrl.IsChecked retourne un bool? qui ne peut pas être casté en bool, d'où ce if.
                if (__ctrl.IsChecked == true)
                {
                    __memberExpression.CValue = true;
                }
                else
                {
                    __memberExpression.CValue = false;
                }

                if (OnMemberChangedByUser != null)
                {
                    OnMemberChangedByUser.Invoke(__memberExpression, (__memberExpression.Parent.CValue));
                }
            }
        }
示例#2
0
        private void keyUp(object sender, RoutedEventArgs e)
        {
            e.Handled = false;
            if (__memberExpression.Parent == null)
            {
                __ctrl.Text = "";
            }
            else
            {
                __memberExpression.CValue = __ctrl.Text;

                if (OnMemberChangedByUser != null)
                {
                    OnMemberChangedByUser.Invoke(__memberExpression, ((REClassObject)(__memberExpression.Parent)).CValue);
                }
            }
        }