public static void SetMethodParameterPropertiesTo(this ProjectEditorViewModel vm, string datatype, string name) { vm.ParameterUnderEdit.Datatype = vm.DatatypeOf(datatype); vm.ParameterUnderEdit.Name = name; vm.AddParameterToMethod(); }
private void AddMethodParameter_OnClick(object sender, RoutedEventArgs e) { _projectEditorViewModel.AddParameterToMethod(); }