This is a migrated thread and some comments may be shown as answers.

How To INotifyPropertyChanged

2 Answers 65 Views
Code Generation
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jun
Top achievements
Rank 1
Jun asked on 12 Nov 2013, 01:16 PM



Hello,



How can I use INPC function of devexpress in Justcode?



And please let me know the merits of Justcode than Coderush?















































2 Answers, 1 is accepted

Sort by
0
Accepted
Zdravko
Telerik team
answered on 15 Nov 2013, 09:44 AM
Hello Jun,

 You can make a code template as show here using the code below if you have already implemented the INotifyPropertyChanged interface.
Notice that the type of the property should be automatically evaluated, but right now we have some issue with the command.

public $3=GET_ELEMENT_TYPE($1$)$ $2=SUGGEST_NAME$
{
get {return  $1=SELECT_VARIABLE()$;}
set
{
    if($1$ == value)
return;
    $1$ = value;
    if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs("$2$"));
}
}

For more information about the templates visit our online documentation.

I am not aware of CodeRush so the the best way to evaluate will be to try both products and decide which one fits your needs best. Here is a link to JustCode page where you can download a trial.
Furthermore, this article will give you a brief view of JustCode key features

Regards,
Zdravko
Telerik
Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
0
Jun
Top achievements
Rank 1
answered on 14 May 2014, 11:58 PM
Thank you very much!!!
Tags
Code Generation
Asked by
Jun
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Jun
Top achievements
Rank 1
Share this question
or