Skip to content

Commit 350ec1d

Browse files
committed
Gone started doing the view page
1 parent 7989d5e commit 350ec1d

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

CutCode/ViewModels/CodeViewModel.cs

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Linq;
55
using System.Text;
66
using System.Threading.Tasks;
7+
using System.Windows.Media;
78

89
namespace CutCode
910
{
@@ -24,6 +25,8 @@ public CodeViewModel(IThemeService _themeService, IPageService _pageService, Cod
2425
this.code = code.code;
2526
langType = code.langType;
2627
createdDate = "Will be changed later";
28+
29+
isEnabled = false;
2730
}
2831
private void ThemeChanged(object sender, EventArgs e)
2932
{
@@ -93,5 +96,68 @@ public string createdDate
9396
SetAndNotify(ref _createdDate, value);
9497
}
9598
}
99+
100+
private bool _isEnabled;
101+
public bool isEnabled
102+
{
103+
get => _isEnabled;
104+
set => SetAndNotify(ref _isEnabled, value);
105+
}
106+
107+
private SolidColorBrush _textForeground;
108+
public SolidColorBrush textForeground
109+
{
110+
get => _textForeground;
111+
set => SetAndNotify(ref _textForeground, value);
112+
}
113+
114+
private SolidColorBrush _textBackground;
115+
public SolidColorBrush textBackground
116+
{
117+
get => _textBackground;
118+
set => SetAndNotify(ref _textBackground, value);
119+
}
120+
121+
private SolidColorBrush _codeBackground;
122+
public SolidColorBrush codeBackground
123+
{
124+
get => _codeBackground;
125+
set => SetAndNotify(ref _codeBackground, value);
126+
}
127+
128+
public void FavCommand()
129+
{
130+
131+
}
132+
133+
public void CopyCommand()
134+
{
135+
136+
}
137+
138+
public void DelCommand()
139+
{
140+
141+
}
142+
143+
public void BackCommand()
144+
{
145+
146+
}
147+
148+
public void EditCommand()
149+
{
150+
isEnabled = true;
151+
}
152+
153+
public void SaveCommand()
154+
{
155+
isEnabled = false;
156+
}
157+
158+
public void CancelCommand()
159+
{
160+
161+
}
96162
}
97163
}

0 commit comments

Comments
 (0)