public static void DeleteInstance() { if (instance != null) { instance = null; } }
public static ProposalViewModel GetInstance(int?type) { if (instance == null) { instance = new ProposalViewModel(type); } return(instance); }
private void ControlAplication() { ProposalViewModel.DeleteInstance(); }