-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml.cs
More file actions
813 lines (682 loc) · 28.3 KB
/
MainWindow.xaml.cs
File metadata and controls
813 lines (682 loc) · 28.3 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
using System;
using System.Drawing;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net.Http.Json;
using System.Printing;
using System.Reflection;
using System.Runtime;
using System.Runtime.InteropServices;
using System.Security;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Text.Json.Nodes;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;
using Microsoft.Win32;
using System.Windows.Media.Imaging;
using System.Windows.Interop;
using static Just_One_Click.MainWindow;
using System.Net.NetworkInformation;
namespace Just_One_Click
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
[SuppressUnmanagedCodeSecurity]
public partial class MainWindow : Window
{
string log = "";
void Write(string str)
{
log += str + "\n";
Console.Text = log;
}
void Log(string str)
{
Trace.WriteLine(str);
}
int delay = 5;
ImageSource FaviconSource;
bool isFirstBoot = true;
public MainWindow()
{
InitializeComponent();
string savePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); // Checks Documents Folder for path
savePath = System.IO.Path.Combine(savePath + "/Just One Click/");
string saveFile = System.IO.Path.Combine(savePath + "savedata.json");
System.Diagnostics.PresentationTraceSources.DataBindingSource.Switch.Level = System.Diagnostics.SourceLevels.Critical;
string path = Directory.GetCurrentDirectory() + "/data.json";
string spath = Directory.GetCurrentDirectory() + "/sdata.json";
var test = new //Test JSON string in indented form, 1 command until line 93
{
Name = "Test",
ID = "1",
Applications = new[] {
new {
name = "X-Plane 12",
path = "/hi",
favicon = "/d/dd/",
ID = "1"
},
new
{
name = "Other X-Plane",
path = "/bye",
favicon = "not used",
ID = "2"
}
}
};
string SerializedJSON = "";
string ReserializedJSON = "";
var DeserializedJSON = new List<Profile>();
void TestJSONWrite()
{
Profile profile = new Profile(); //unnecesssary?
profile.Name = "Test"; //.
profile.ID = "1"; //..
var ReadJSON = "";
int testExitCode = 0;
try
{
SerializedJSON = JsonConvert.SerializeObject(test, Formatting.Indented);
}
catch
{
Log("Error: C0101. Serialization Failure");
testExitCode = 1;
}
try
{
}
catch
{
Write("Error C0102. Data Write Failed. Make sure this app has access to the Documents folder");
testExitCode = 2;
}
try
{
ReadJSON = File.ReadAllText(saveFile);
//Reading File - Error here
}
catch
{
Log("Error C0103. File Read Error.");
testExitCode = 3;
}
try
{
DeserializedJSON = JsonConvert.DeserializeObject<List<Profile>>(ReadJSON);
}
catch
{
Write("Error C0104. Deserialization Failure");
testExitCode = 4;
}
try
{
ReserializedJSON = JsonConvert.SerializeObject(DeserializedJSON, Formatting.Indented);
}
catch
{
Write("Error C0105. Reserialization Failure");
testExitCode = 5;
}
if (ReserializedJSON == SerializedJSON)
{
Write($"Tests Succeeded (Exit Code {testExitCode})");
}
else
{
Write("");
Log(SerializedJSON);
Log("Reserialized:");
Log(ReserializedJSON);
}
}
TestJSONWrite();
Initialize();
}
private async void LaunchBTN_Click(object sender, RoutedEventArgs e)
{
Log("Launch Clicked");
if (Profiles.SelectedItem is Profile selectedProfile)
{
this.WindowState = WindowState.Minimized;
foreach (Apps selectedApp in selectedProfile.Applications)
{
try
{
// Start the selected application
System.Diagnostics.Process.Start(selectedApp.Path);
Log($"Launching: {selectedApp.Path}");
// Introduce a delay between launches (adjust the delay time as needed)
await Task.Delay(TimeSpan.FromSeconds(delay)); // 5 seconds delay
}
catch (Exception ex)
{
// Handle any exceptions that may occur during the process start
MessageBox.Show($"Error: {ex.Message}", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
}
}
else
{
MessageBox.Show("Please select a profile to launch applications.", "Information", MessageBoxButton.OK, MessageBoxImage.Information);
}
}
public void Initialize()
{
string savePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); // Checks Documents Folder for path
savePath = System.IO.Path.Combine(savePath + "/Just One Click/");
string saveFile = System.IO.Path.Combine(savePath + "savedata.json");
if (isFirstBoot == true)
{
WritePlaceholderJson(saveFile);
isFirstBoot = false;
}
if (!File.Exists(saveFile) || string.IsNullOrEmpty(File.ReadAllText(saveFile)))
{
// If the file doesn't exist or is empty, write a placeholder JSON file
WritePlaceholderJson(saveFile);
}
Apps apps = new Apps();
if (File.Exists(saveFile))
{
string json = "";
var djson = new List<Profile>();
try
{
Clipboard.SetText(saveFile);
json = File.ReadAllText(saveFile);
djson = JsonConvert.DeserializeObject<List<Profile>>(json);
}
catch
{
Write("Error Code A0101. JSON deserialization failure");
MessageBox.Show("Error Code A0101: JSON deserialization failure", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
Profile profile = new Profile();
string ajson = JsonConvert.SerializeObject(djson, Formatting.Indented);
try
{
Profiles.DataContext = djson;
AppsLB.DataContext = djson;
AppsLB.ItemsSource = djson;
Log($"AJSON: {ajson}");
Log("Data Found");
AppsLB.Items.Refresh();
Profiles.Items.Refresh();
AppsLB.Items.Refresh();
}
catch
{
Write("Error A0401. Error Setting Data Source");
MessageBox.Show("Error Code A0401: Error Setting Data Source", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
}
else
{
Write("Data Not Found");
MessageBox.Show("Error Code A0301: Save File Not Found", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
//Clipboard.SetText(log);
void CreateFile(string serOBJ, string path)
{
string saveFile = System.IO.Path.Combine(path + "savedata.json");
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
Write("Directory not found, New directory created at:" + path);
}
StreamWriter writer = new StreamWriter(saveFile);
writer.Write(serOBJ);
}
AppsLB.ItemsSource = null;
AppsLB.Items.Refresh();
}
private void Settings_Click(object sender, RoutedEventArgs e)
{
SettingsWindow settings = new SettingsWindow();
settings.Show();
}
private void Profiles_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (Profiles.SelectedItem is Profile selectedProfile)
{
Log($"Selected Profile: {selectedProfile.Name}");
if (selectedProfile.Applications != null)
{
Log($"Number of Applications: {selectedProfile.Applications.Count}");
// Set the ItemsSource directly to the AppsLB ListBox
AppsLB.ItemsSource = selectedProfile.Applications;
delay = selectedProfile.Delay;
}
else
{
Log("Applications list is null.");
// Clear the ListBox
AppsLB.ItemsSource = null;
}
foreach (var item in AppsLB.Items)
{
// Print debug information for each item in AppsLB
Log($"AppsLB Item: {(item as dynamic).Name}");
}
}
else
{
Log("Selected Profile is null.");
// Clear the ListBox
AppsLB.ItemsSource = null;
}
}
private void ContextMenu_DeleteClick(object sender, RoutedEventArgs e)
{
if (Profiles.SelectedItem is Profile selectedProfile)
{
if (AppsLB.SelectedItem is Apps selectedApp)
{
//if () {
// Confirm with the user before deleting the app
MessageBoxResult result = MessageBox.Show($"Are you sure you want to delete the application '{selectedApp.Name}' from the profile '{selectedProfile.Name}'?",
"Confirm Delete", MessageBoxButton.YesNo, MessageBoxImage.Warning);
if (result == MessageBoxResult.Yes)
{
// Remove the selected app from the profile's Applications list
selectedProfile.Applications.Remove(selectedApp);
// Update the ListBox's ItemsSource to reflect the changes
AppsLB.ItemsSource = selectedProfile.Applications;
// Save the updated data to the JSON file (you need to implement the save logic)
SaveDataToJson();
AppsLB.Items.Refresh();
}
//}
}
}
}
private void AddMenuItem_Click(object sender, RoutedEventArgs e)
{
if (Profiles.SelectedItem is Profile selectedProfile)
{
// Create a new App instance (customize this based on your data structure)
Apps newApp = new Apps
{
ID = "new",
Name = "New App",
Path = "C:\\Program Files\\NewApp.exe",
Favicon = null
};
// Add the new app to the profile's Applications list
selectedProfile.Applications.Add(newApp);
// Update the ListBox's ItemsSource to reflect the changes
AppsLB.ItemsSource = selectedProfile.Applications;
// Save the updated data to the JSON file
SaveDataToJson();
AppsLB.Items.Refresh();
}
}
private void AddProfile_Click(object sender, RoutedEventArgs e)
{
string newProfileName = "New Profile";
// Create a new profile
Profile newProfile = new Profile
{
ID = Guid.NewGuid().ToString(),
Name = newProfileName,
Delay = 5, // You can set default values here
Applications = new List<Apps>() // Initialize the Applications list
};
// Add the new profile to the existing data
if (Profiles.ItemsSource is List<Profile> profileList)
{
profileList.Add(newProfile);
// Refresh the ListBox's ItemsSource to reflect the changes
Profiles.ItemsSource = profileList;
// Save the updated data to the JSON file
SaveDataToJson();
Profiles.Items.Refresh();
}
}
private void DeleteProfile_Click(object sender, RoutedEventArgs e)
{
if (Profiles.SelectedItem is Profile selectedProfile)
{
// Confirm with the user before deleting the profile
MessageBoxResult result = MessageBox.Show($"Are you sure you want to delete the profile '{selectedProfile.Name}'?",
"Confirm Delete", MessageBoxButton.YesNo, MessageBoxImage.Warning);
if (result == MessageBoxResult.Yes)
{
// Remove the selected profile from the existing data
if (Profiles.ItemsSource is List<Profile> profileList)
{
profileList.Remove(selectedProfile);
// Refresh the ListBox's ItemsSource to reflect the changes
Profiles.ItemsSource = profileList;
// Save the updated data to the JSON file
SaveDataToJson();
Profiles.Items.Refresh();
}
}
}
}
private void RenameMenuItem_Click(object sender, RoutedEventArgs e)
{
if (Profiles.SelectedItem is Profile selectedProfile)
{
if (AppsLB.SelectedItem is Apps selectedApp)
{
// Prompt the user for a new name (you can use an input dialog or another method)
string newName = PromptForNewName(selectedApp.Name);
// Update the selected app's name
selectedApp.Name = newName;
// Update the ListBox's ItemsSource to reflect the changes
AppsLB.ItemsSource = selectedProfile.Applications;
// Save the updated data to the JSON file
SaveDataToJson();
AppsLB.Items.Refresh();
}
}
}
private string PromptForNewName(string currentName)
{
// You can implement a dialog or use an input box to prompt the user for a new name
// For simplicity, this example uses MessageBox, but you may want to implement a custom dialog.
string newName = currentName; // Default to the current name if the user cancels
InputBox inputBox = new InputBox("Enter a new name:", "Rename", currentName);
if (inputBox.ShowDialog() == true)
{
// User clicked OK, update the newName
newName = inputBox.ResponseText;
}
return newName;
}
private string PromptForFaviconPath()
{
InputBox inputBox = new InputBox("Enter Path to PNG image", "Change Favicon Path");
return inputBox.ResponseText;
}
private string BrowseForFile()
{
OpenFileDialog openFileDialog = new OpenFileDialog
{
Filter = "Executable Files (*.exe)|*.exe|All Files (*.*)|*.*"
};
if (openFileDialog.ShowDialog() == true)
{
return openFileDialog.FileName;
}
return null;
}
private void ChangePathMenuItem_Click(object sender, RoutedEventArgs e)
{
Apps app = new Apps();
if (AppsLB.SelectedItem is Apps selectedApp)
{
string newPath = BrowseForFile();
if (newPath != null)
{
selectedApp.Path = newPath;
// Refresh the ListBox to reflect the changes
AppsLB.Items.Refresh();
string newFaviconPath = ExtractFavicon(selectedApp.Path);
SaveDataToJson();
}
}
}
private void RenameProfile_Click(object sender, RoutedEventArgs e)
{
if (Profiles.SelectedItem is Profile selectedProfile)
{
// Prompt the user for a new name (you can use an input dialog or another method)
string newName = PromptForNewName(selectedProfile.Name);
// Update the selected app's name
selectedProfile.Name = newName;
Profiles.Items.Refresh();
// Save the updated data to the JSON file
SaveDataToJson();
}
}
public void WritePlaceholderJson(string filePath)
{
var placeholderData = new List<Profile>
{
new Profile
{
ID = "PlaceholderProfile",
Name = "Placeholder Profile",
Delay = 5,
Applications = new List<Apps>
{
new Apps
{
ID = "PlaceholderApp",
Name = "Placeholder",
Path = "C:\\Path\\To\\Application.exe", // Provide a default path
Favicon = null,
isBrowserSource = false,
}
}
}
};
try
{
// Serialize and write the placeholder data to the file
string placeholderJson = JsonConvert.SerializeObject(placeholderData, Formatting.Indented);
File.WriteAllText(filePath, placeholderJson);
Log("Placeholder JSON file written.");
}
catch (Exception ex)
{
// Handle any exceptions that may occur during file write
Log($"Error writing placeholder JSON file: {ex.Message}");
}
}
private void SaveDataToJson()
{
try
{
string savePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
savePath = System.IO.Path.Combine(savePath, "Just One Click/");
string saveFile = System.IO.Path.Combine(savePath, "savedata.json");
string serializedData = JsonConvert.SerializeObject(Profiles.ItemsSource, Formatting.Indented);
File.WriteAllText(saveFile, serializedData);
Write("Data saved successfully.");
Log($"Path: {saveFile}");
}
catch (Exception ex)
{
Write($"Error saving data: {ex.Message}");
}
}
private void ChangeFavicon_Click(object sender, RoutedEventArgs e)
{
if (AppsLB.SelectedItem is Apps selectedApp)
{
// Show a file picker dialog for selecting the PNG file
OpenFileDialog openFileDialog = new OpenFileDialog
{
Filter = "PNG Files (*.png)|*.png|All Files (*.*)|*.*"
};
if (openFileDialog.ShowDialog() == true)
{
// Set the Favicon property to the selected file path
selectedApp.Favicon = openFileDialog.FileName;
// Refresh the ListBox to reflect the changes
AppsLB.Items.Refresh();
// Save the updated data to the JSON file
SaveDataToJson();
}
}
}
BitmapSource bitmapSource;
private void ResetFavicon_Click(object sender, RoutedEventArgs e)
{
if (AppsLB.SelectedItem is Apps selectedApp)
{
string newFaviconPath = ExtractFavicon(selectedApp.Path); // UNUSED FUNCTION
if (newFaviconPath != null)
{
// Refresh the ListBox to reflect the changes
AppsLB.Items.Refresh();
}
}
}
private string ExtractFavicon(string exeFilePath)
{
try
{
Icon appIcon = System.Drawing.Icon.ExtractAssociatedIcon(exeFilePath);
BitmapSource bitmapSource = Imaging.CreateBitmapSourceFromHIcon(
appIcon.Handle,
Int32Rect.Empty,
BitmapSizeOptions.FromEmptyOptions());
// Save the extracted icon as an image file (e.g., PNG) in the temp folder
string tempFolderPath = System.IO.Path.GetTempPath();
string tempIconPath = System.IO.Path.Combine(tempFolderPath, "ExtractedFavicon.png");
Apps app = new Apps();
AppsLB.Items.Refresh();
using (FileStream stream = new FileStream(tempIconPath, FileMode.Create))
{
PngBitmapEncoder encoder = new PngBitmapEncoder();
encoder.Frames.Add(BitmapFrame.Create(bitmapSource));
encoder.Save(stream);
}
return tempIconPath;
}
catch (Exception ex)
{
Write($"Error extracting favicon: {ex.Message}");
return null;
}
}
private void LaunchBrowser(string url)
{
try
{
// Use the Process.Start method to launch the default web browser
Process.Start(new ProcessStartInfo(url) { UseShellExecute = true });
}
catch (Exception ex)
{
// Handle any exceptions that may occur during the process start
MessageBox.Show($"Error launching browser: {ex.Message}", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
}
private void Duplicate_Click(object sender, RoutedEventArgs e)
{
if (Profiles.SelectedItem is Profile selectedProfile)
{
if (AppsLB.SelectedItem is Apps selectedApp)
{
// Create a new app by cloning the selected app
Apps newApp = new Apps
{
ID = Guid.NewGuid().ToString(), // Generate a new ID for the duplicated app
Name = selectedApp.Name,
Path = selectedApp.Path,
Favicon = selectedApp.Favicon
};
// Add the new app to the profile's Applications list
selectedProfile.Applications.Add(newApp);
// Update the ListBox's ItemsSource to reflect the changes
AppsLB.ItemsSource = selectedProfile.Applications;
// Save the updated data to the JSON file
SaveDataToJson();
AppsLB.Items.Refresh();
}
}
}
private void AddBrowserSource(object sender, RoutedEventArgs e)
{
// Prompt the user for a new name and URL (you can use an input dialog or another method)
string newName = PromptForNewBSName("Enter a name for the browser source:");
string newUrl = PromptForNewUrl("Enter the URL for the browser source:");
// Create a new Apps object for the browser source
Apps newBrowserSource = new Apps
{
ID = Guid.NewGuid().ToString(),
Name = newName,
Path = newUrl,
Favicon = null
};
// Add the new browser source to the selected profile's Applications list
if (Profiles.SelectedItem is Profile selectedProfile)
{
selectedProfile.Applications.Add(newBrowserSource);
// Update the ListBox's ItemsSource to reflect the changes
AppsLB.ItemsSource = selectedProfile.Applications;
// Save the updated data to the JSON file
SaveDataToJson();
AppsLB.Items.Refresh();
}
}
private string PromptForNewBSName(string prompt)
{
// You can implement a dialog or use an input box to prompt the user for a new name
// For simplicity, this example uses MessageBox, but you may want to implement a custom dialog.
string newName = "New Browser Source"; // Default to a generic name if the user cancels
InputBox inputBox = new InputBox(prompt, "Add Browser Source", "");
if (inputBox.ShowDialog() == true)
{
// User clicked OK, update the newName
newName = inputBox.ResponseText;
}
return newName;
}
private string PromptForNewUrl(string prompt)
{
// Similar to PromptForNewName, prompt the user for a new URL
// Implement your own logic to handle URL input, possibly using a custom dialog or input box.
// For simplicity, this example uses MessageBox, but it's not suitable for entering URLs.
string newUrl = "https://www.example.com"; // Default to a placeholder URL
InputBox inputBox = new InputBox(prompt, "Add URL", "");
if (inputBox.ShowDialog() == true)
{
// User clicked OK, update the newUrl
newUrl = inputBox.ResponseText;
}
return newUrl;
}
private void RefreshButton_Click(object sender, RoutedEventArgs e)
{
AppsLB.Items.Refresh();
Profiles.Items.Refresh();
MainWindow mainWindow = new MainWindow();
mainWindow.Initialize();
}
public class Profile
{
public string ID { get; set; }
public string Name { get; set; }
public int Delay { get; set; }
public List<Apps> Applications { get; set; }
}
public class Apps
{
public string ID { get; set; }
public string Name { get; set; }
public string Path { get; set; }
public string Favicon { get; set; }
public bool isBrowserSource { get; set; }
}
}
}