public bool CanExecute(object parameter) { if (parameter != null) { if (parameter is object && parameter is Registration_model) { var model = parameter as Registration_model; valid = new Registration_model_validation(); if (valid.Validate(model).IsValid&& model.password == model.r_password) { return(true); } else { return(false); } } else { return(false); } } else { return(false); } }
public Main_view_model() { mod = new Registration_model(); mod_va = new Registration_model_validation(); }