-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a4ae01
commit 44329c0
Showing
28 changed files
with
722 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,6 @@ public SnapManager( | |
|
||
public async Task InitializeAsync() | ||
{ | ||
Dev.Log(); | ||
|
||
if (IsInitialized) | ||
{ | ||
return; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Windows; | ||
using SnapIt.Common.Mvvm; | ||
|
||
namespace SnapIt.ViewModels.Dialogs; | ||
|
||
public class NewVersionDialogViewModel : ViewModelBase | ||
{ | ||
public override async Task InitializeAsync(RoutedEventArgs args) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
using Prism.Mvvm; | ||
using System.Windows; | ||
using SnapIt.Common.Mvvm; | ||
|
||
namespace SnapIt.ViewModels.Dialogs; | ||
|
||
public class RenameDialogViewModel : BindableBase | ||
public class RenameDialogViewModel : ViewModelBase | ||
{ | ||
private string layoutName; | ||
|
||
public string LayoutName { get => layoutName; set => SetProperty(ref layoutName, value); } | ||
|
||
public RenameDialogViewModel() | ||
{ | ||
_ = InitializeAsync(); | ||
} | ||
|
||
public async Task InitializeAsync() | ||
public override async Task InitializeAsync(RoutedEventArgs args) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Windows; | ||
using SnapIt.Common.Mvvm; | ||
|
||
namespace SnapIt.ViewModels.Dialogs; | ||
|
||
public class StoreWebsiteDialogViewModel : ViewModelBase | ||
{ | ||
private string licenseMessageCloseButtonText; | ||
private bool isTrialEnded; | ||
|
||
public bool IsTrialEnded { get => isTrialEnded; set => SetProperty(ref isTrialEnded, value); } | ||
public string LicenseMessageCloseButtonText { get => licenseMessageCloseButtonText; set => SetProperty(ref licenseMessageCloseButtonText, value); } | ||
|
||
public StoreWebsiteDialogViewModel() | ||
{ | ||
} | ||
|
||
public override async Task InitializeAsync(RoutedEventArgs args) | ||
{ | ||
LicenseMessageCloseButtonText = IsTrialEnded ? "Exit Application" : "Close"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Windows; | ||
using SnapIt.Common.Entities; | ||
using SnapIt.Common.Mvvm; | ||
|
||
namespace SnapIt.ViewModels.Dialogs; | ||
|
||
public class TrialMessageDialogViewModel : ViewModelBase | ||
{ | ||
private string licenseMessageCloseButtonText; | ||
private string titleText; | ||
private bool isTrialEnded; | ||
|
||
public string LicenseMessageCloseButtonText { get => licenseMessageCloseButtonText; set => SetProperty(ref licenseMessageCloseButtonText, value); } | ||
public string TitleText { get => titleText; set => SetProperty(ref titleText, value); } | ||
public bool IsTrialEnded { get => isTrialEnded; set => SetProperty(ref isTrialEnded, value); } | ||
|
||
public TrialMessageDialogViewModel() | ||
{ | ||
} | ||
|
||
public override async Task InitializeAsync(RoutedEventArgs args) | ||
{ | ||
TitleText = $"{Constants.AppName} Trial"; | ||
LicenseMessageCloseButtonText = IsTrialEnded ? "Exit Application" : "Close"; | ||
} | ||
} |
Oops, something went wrong.