-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWeatherForecastForEdit.cs
More file actions
26 lines (25 loc) · 923 Bytes
/
WeatherForecastForEdit.cs
File metadata and controls
26 lines (25 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace BlazorGridInlineEditing.Data {
public class WeatherForecastForEdit : WeatherForecast, INotifyPropertyChanged {
public event PropertyChangedEventHandler PropertyChanged;
private bool _IsInEditMode { get; set; } = false;
public bool IsInEditMode {
get {
return this._IsInEditMode;
}
set {
if (value != this._IsInEditMode) {
this._IsInEditMode = value;
NotifyPropertyChanged();
}
}
}
private void NotifyPropertyChanged([CallerMemberName] String propertyName = "") {
if (PropertyChanged != null) {
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}