mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
style: add .editorconfig for code formatting. see issu #25
This commit is contained in:
parent
a8eeea4f78
commit
18aaa0a143
225 changed files with 7781 additions and 3911 deletions
|
@ -2,21 +2,27 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SourceGit.ViewModels {
|
||||
public class CreateGroup : Popup {
|
||||
namespace SourceGit.ViewModels
|
||||
{
|
||||
public class CreateGroup : Popup
|
||||
{
|
||||
[Required(ErrorMessage = "Group name is required!")]
|
||||
public string Name {
|
||||
public string Name
|
||||
{
|
||||
get => _name;
|
||||
set => SetProperty(ref _name, value, true);
|
||||
}
|
||||
|
||||
public CreateGroup(RepositoryNode parent) {
|
||||
public CreateGroup(RepositoryNode parent)
|
||||
{
|
||||
_parent = parent;
|
||||
View = new Views.CreateGroup() { DataContext = this };
|
||||
}
|
||||
|
||||
public override Task<bool> Sure() {
|
||||
Preference.AddNode(new RepositoryNode() {
|
||||
public override Task<bool> Sure()
|
||||
{
|
||||
Preference.AddNode(new RepositoryNode()
|
||||
{
|
||||
Id = Guid.NewGuid().ToString(),
|
||||
Name = _name,
|
||||
IsRepository = false,
|
||||
|
@ -26,7 +32,7 @@ namespace SourceGit.ViewModels {
|
|||
return null;
|
||||
}
|
||||
|
||||
private RepositoryNode _parent = null;
|
||||
private readonly RepositoryNode _parent = null;
|
||||
private string _name = string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue