diff --git a/PackHistorian/Controls/CardSelector.xaml b/PackHistorian/Controls/CardSelector.xaml new file mode 100644 index 0000000..8f83acd --- /dev/null +++ b/PackHistorian/Controls/CardSelector.xaml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + diff --git a/PackHistorian/Controls/CardSelector.xaml.cs b/PackHistorian/Controls/CardSelector.xaml.cs new file mode 100644 index 0000000..58a290c --- /dev/null +++ b/PackHistorian/Controls/CardSelector.xaml.cs @@ -0,0 +1,38 @@ +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Windows; +using System.Windows.Controls; +using Hearthstone_Deck_Tracker.Hearthstone; +using HDTCard = Hearthstone_Deck_Tracker.Hearthstone.Card; + +namespace PackTracker.Controls +{ + /// + /// Logica di interazione per CardSelector.xaml + /// + public partial class CardSelector : UserControl + { + private Entity.Card _selectedCard; + + public Entity.Card SelectedCard + { + get { return _selectedCard; } + set { _selectedCard = value; } + } + + + public ObservableCollection SetHdtCards + { + get { return (ObservableCollection)GetValue(SetHdtCardsProperty); } + set { SetValue(SetHdtCardsProperty, value); } + } + + public static readonly DependencyProperty SetHdtCardsProperty = DependencyProperty.Register("SetHdtCards", typeof(ObservableCollection), typeof(CardSelector), null); + + + public CardSelector() + { + InitializeComponent(); + } + } +} diff --git a/PackHistorian/Controls/ManualPackInsert.xaml b/PackHistorian/Controls/ManualPackInsert.xaml new file mode 100644 index 0000000..1bd7eaa --- /dev/null +++ b/PackHistorian/Controls/ManualPackInsert.xaml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PackHistorian/Controls/ManualPackInsert.xaml.cs b/PackHistorian/Controls/ManualPackInsert.xaml.cs new file mode 100644 index 0000000..2833bc6 --- /dev/null +++ b/PackHistorian/Controls/ManualPackInsert.xaml.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text; +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.Shapes; +using System.Collections.Specialized; +using PackTracker.Entity; + +namespace PackTracker.Controls +{ + /// + /// Interaktionslogik für ManualPackInsert.xaml + /// + public partial class ManualPackInsert + { + public ManualPackInsert(PackTracker.History History) + { + DataContext = new View.ManualPackInsert(History); + + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/PackHistorian/Controls/Menu.xaml b/PackHistorian/Controls/Menu.xaml index b1e2521..20ec3db 100644 --- a/PackHistorian/Controls/Menu.xaml +++ b/PackHistorian/Controls/Menu.xaml @@ -45,4 +45,11 @@ Search + + + + + + Add manual + diff --git a/PackHistorian/Controls/PityTimer/Label.xaml b/PackHistorian/Controls/PityTimer/Label.xaml index 8aaa452..76f21e1 100644 --- a/PackHistorian/Controls/PityTimer/Label.xaml +++ b/PackHistorian/Controls/PityTimer/Label.xaml @@ -27,7 +27,7 @@ - +