-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TODO appvayor test
- Loading branch information
Showing
13 changed files
with
319 additions
and
46 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
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,71 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using ReactiveUI; | ||
namespace Mirivoice.ViewModels | ||
{ | ||
public class VoicersStyleBoxViewModel : ViewModelBase | ||
{ | ||
private bool _isDescOpen = false; | ||
public bool IsDescOpen | ||
{ | ||
get => _isDescOpen; | ||
set | ||
{ | ||
this.RaiseAndSetIfChanged(ref _isDescOpen, value); | ||
OnPropertyChanged(nameof(IsDescOpen)); | ||
} | ||
} | ||
|
||
private bool _isDescSelected = false; | ||
public bool IsDescSelected | ||
{ | ||
get => _isDescSelected; | ||
set | ||
{ | ||
this.RaiseAndSetIfChanged(ref _isDescSelected, value); | ||
OnPropertyChanged(nameof(IsDescSelected)); | ||
} | ||
} | ||
|
||
private string _descText; | ||
public string DescText | ||
{ | ||
get => _descText; | ||
set | ||
{ | ||
this.RaiseAndSetIfChanged(ref _descText, value); | ||
OnPropertyChanged(nameof(DescText)); | ||
} | ||
} | ||
|
||
private string _styleName; | ||
public string StyleName | ||
{ | ||
get => _styleName; | ||
set | ||
{ | ||
this.RaiseAndSetIfChanged(ref _styleName, value); | ||
OnPropertyChanged(nameof(StyleName)); | ||
} | ||
} | ||
public VoicersStyleBoxViewModel() | ||
{ | ||
} | ||
|
||
|
||
public void OnDescButtonClick() | ||
{ | ||
if (!IsDescSelected) | ||
{ | ||
IsDescOpen = false; | ||
} | ||
else | ||
{ | ||
IsDescOpen = true; | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.