Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

Visual Cobol #region problem

$
0
0

Hi!

I will convert this c# code snip in Visual Cobol code:

==============================================================================

#region MinimumValue Property

publicstaticdouble GetMinimumValue(DependencyObject obj)

{

return (double)obj.GetValue(MinimumValueProperty);

}

publicstaticvoid SetMinimumValue(DependencyObject obj, double value)

{

obj.SetValue(MinimumValueProperty, value);

}

publicstaticreadonlyDependencyProperty MinimumValueProperty =

DependencyProperty.RegisterAttached(

"MinimumValue",

typeof(double),

typeof(TextBoxNumeric),

newFrameworkPropertyMetadata(double.NaN, MinimumValueChangedCallback)

);

privatestaticvoid MinimumValueChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)

{

TextBox _this = (d asTextBox);

ValidateTextBox(_this);

}

#endregion

==============================================================================

I know that #Region = $Region is...

But how can i convert the rest?

Have anyone an idea?

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>