You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnewCodeBoxModel(2,"C++ binary search","blah blah binary blah ... ye and ok \n so what??",false,"cpp","print('Hello world')",1628136352,themeService);
21
22
}
22
23
23
-
publicstaticboolDelCode(CodeBoxModelcode)
24
+
publicboolDelCode(CodeBoxModelcode)
24
25
{
25
26
try
26
27
{
@@ -33,12 +34,12 @@ public static bool DelCode(CodeBoxModel code)
Copy file name to clipboardExpand all lines: CutCode/ViewModels/FavViewModel.cs
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,9 @@ public FavViewModel(IThemeService _themeService)
22
22
IsSearched=false;
23
23
24
24
AllCodes=newObservableCollection<CodeBoxModel>();
25
-
varcode1=newCodeBoxModel("Pyqt5 scroll bar","pyqt5 custom scroll bar made in python ok??",true,"python",themeService);
26
-
varcode2=newCodeBoxModel("C++ binary search","blah blah binary blah ... ye and ok \n so what??",false,"cpp",themeService);
27
-
varcode3=newCodeBoxModel("wpf sample combo box","combo box style that is responseive to the ui and also \n and ok ?? blah ... ",true,"csharp",themeService);
25
+
varcode1=newCodeBoxModel(1,"Pyqt5 scroll bar","pyqt5 custom scroll bar made in python ok??",true,"python","print('Hello world')",1628136352,themeService);
26
+
varcode2=newCodeBoxModel(2,"C++ binary search","blah blah binary blah ... ye and ok \n so what??",false,"cpp","print('Hello world')",1628136352,themeService);
27
+
varcode3=newCodeBoxModel(3,"wpf sample combo box","combo box style that is responseive to the ui and also \n and ok ?? blah ... ",true,"csharp","print('Hello world')",1628136352,themeService);
28
28
AllCodes.Add(code1);
29
29
AllCodes.Add(code2);
30
30
AllCodes.Add(code3);
@@ -91,5 +91,11 @@ public async void SearchCommand(string text)
91
91
awaitTask.Delay(TimeSpan.FromSeconds(1));// this will be changed to the search process
Copy file name to clipboardExpand all lines: CutCode/ViewModels/HomeViewModel.cs
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,10 @@ public HomeViewModel(IThemeService _themeService, IPageService _pageService)
24
24
SetAppearance();
25
25
IsSearched=false;
26
26
27
-
vardb=newDBManager();
28
-
//AllCodes = db.AllCodes;
29
-
30
27
AllCodes=newObservableCollection<CodeBoxModel>();
31
-
varcode1=newCodeBoxModel("Pyqt5 scroll bar","pyqt5 custom scroll bar made in python ok??",true,"python");
32
-
varcode2=newCodeBoxModel("C++ binary search","blah blah binary blah ... ye and ok \n so what??",false,"cpp");
33
-
varcode3=newCodeBoxModel("wpf sample combo box","combo box style that is responseive to the ui and also \n and ok ?? blah ... ",true,"csharp");
28
+
varcode1=newCodeBoxModel(1,"Pyqt5 scroll bar","pyqt5 custom scroll bar made in python ok??",true,"python","print('Hello world')",1628136352,themeService);
29
+
varcode2=newCodeBoxModel(2,"C++ binary search","blah blah binary blah ... ye and ok \n so what??",false,"cpp","print('Hello world')",1628136352,themeService);
30
+
varcode3=newCodeBoxModel(3,"wpf sample combo box","combo box style that is responseive to the ui and also \n and ok ?? blah ... ",true,"csharp","print('Hello world')",1628136352,themeService);
34
31
AllCodes.Add(code1);
35
32
AllCodes.Add(code2);
36
33
AllCodes.Add(code3);
@@ -123,5 +120,11 @@ public async void SearchCommand(string text)
123
120
awaitTask.Delay(TimeSpan.FromSeconds(1));// this will be changed to the search process
0 commit comments