This repository has been archived by the owner on Jul 24, 2020. It is now read-only.
-
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.
Merge pull request #44 from haevg-rz/drap-and-drop
Drap and drop
- Loading branch information
Showing
11 changed files
with
204 additions
and
23 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Planungsboard.Presentation.ViewModels; | ||
|
||
namespace Planungsboard.Presentation.DesignData | ||
{ | ||
public class DesignDataCard : Card | ||
{ | ||
public DesignDataCard() | ||
{ | ||
var rnd = new Random(); | ||
var alpha = "qwertzuioplkjhgfdsayxcvbnm"; | ||
this.Effort = rnd.Next(1, 10) ^ 2; | ||
this.Id = rnd.Next(10000, 99999).ToString(); | ||
this.Title = alpha.OrderBy(c => Guid.NewGuid()).Take(rnd.Next(3, 5)).Select(c => c.ToString()).Aggregate((s, s1) => s + s1).ToUpper(); | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
Planungsboard.Presentation/DesignData/DesignDataListCards.cs
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,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Planungsboard.Presentation.DesignData | ||
{ | ||
public class DesignDataListCards : List<ViewModels.Card> | ||
{ | ||
} | ||
} |
34 changes: 33 additions & 1 deletion
34
Planungsboard.Presentation/DesignData/ResourceDictionary.xaml
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,7 +1,39 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:viewModels="clr-namespace:Planungsboard.Presentation.ViewModels"> | ||
xmlns:viewModels="clr-namespace:Planungsboard.Presentation.ViewModels" | ||
xmlns:userControls="clr-namespace:Planungsboard.Presentation.UserControls" | ||
xmlns:designData="clr-namespace:Planungsboard.Presentation.DesignData"> | ||
|
||
<viewModels:Card x:Key="DesignDataCard" Id="23422" Title="BER" Color="#003087" Effort="16" /> | ||
|
||
<userControls:CardsWarpPanel x:Key="DesignDataCardsWarpPanel"> | ||
<userControls:CardsWarpPanel.Quarter1Cards> | ||
<designData:DesignDataListCards> | ||
<designData:DesignDataCard /> | ||
<designData:DesignDataCard /> | ||
<designData:DesignDataCard /> | ||
</designData:DesignDataListCards> | ||
</userControls:CardsWarpPanel.Quarter1Cards> | ||
<userControls:CardsWarpPanel.Quarter2Cards> | ||
<designData:DesignDataListCards> | ||
<designData:DesignDataCard /> | ||
<designData:DesignDataCard /> | ||
<designData:DesignDataCard /> | ||
</designData:DesignDataListCards> | ||
</userControls:CardsWarpPanel.Quarter2Cards> | ||
<userControls:CardsWarpPanel.Quarter3Cards> | ||
<designData:DesignDataListCards> | ||
<designData:DesignDataCard /> | ||
<designData:DesignDataCard /> | ||
<designData:DesignDataCard /> | ||
</designData:DesignDataListCards> | ||
</userControls:CardsWarpPanel.Quarter3Cards> | ||
<userControls:CardsWarpPanel.Quarter4Cards> | ||
<designData:DesignDataListCards> | ||
<designData:DesignDataCard /> | ||
<designData:DesignDataCard /> | ||
<designData:DesignDataCard /> | ||
</designData:DesignDataListCards> | ||
</userControls:CardsWarpPanel.Quarter4Cards> | ||
</userControls:CardsWarpPanel> | ||
</ResourceDictionary> |
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,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Windows.Controls; | ||
using Planungsboard.Presentation.ViewModels; | ||
|
||
namespace Planungsboard.Presentation.Message | ||
{ | ||
public class DropMessage | ||
{ | ||
public Card Card { get; set; } | ||
public ItemsControl DropTarget { get; set; } | ||
public int DisplayQuarterIndex { get; set; } | ||
public Team Team { get; set; } | ||
} | ||
} |
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