public static OnePageClientViewModel GetInstance() { if (OnePageClientViewModel.singletonInstance == null) { OnePageClientViewModel.singletonInstance = new OnePageClientViewModel(true); } return(OnePageClientViewModel.singletonInstance); }
public OnePageClientViewModel() { if (OnePageClientViewModel.singletonInstance != null) { this.P24 = OnePageClientViewModel.singletonInstance.P24; this.Transaction = new Transaction(this.P24); } else { AllConstructorsOpetarions(); OnePageClientViewModel.singletonInstance = this; } // Test Data - to Delete numberOfInstanes++; this.InstanceNumber = numberOfInstanes; }