diff --git a/DokterApp/ITab.cs b/DokterApp/ITab.cs new file mode 100644 index 0000000..c01f9ad --- /dev/null +++ b/DokterApp/ITab.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Windows.Input; + +namespace DokterApp +{ + public interface ITab + { + string Name { get; set; } + ICommand CloseCommand { get; } + event EventHandler CloseRequested; + } + + public abstract class Tab : ITab + { + public string Name { get; set; } + public ICommand CloseCommand { get; } + public event EventHandler CloseRequested; + + public Tab() + { + //CloseCommand = + } + + } + +} diff --git a/DokterApp/UserControlForTab.xaml.cs b/DokterApp/UserControlForTab.xaml.cs index 2c34c55..6e30162 100644 --- a/DokterApp/UserControlForTab.xaml.cs +++ b/DokterApp/UserControlForTab.xaml.cs @@ -22,5 +22,6 @@ namespace DokterApp { InitializeComponent(); } + } } diff --git a/DokterApp/UserTab.cs b/DokterApp/UserTab.cs new file mode 100644 index 0000000..d24e593 --- /dev/null +++ b/DokterApp/UserTab.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace DokterApp +{ + class UserTab : Tab + { + public UserTab() + { + Name = "Piet"; + } + } +} diff --git a/DokterApp/WindowTabs.xaml b/DokterApp/WindowTabs.xaml index 0ba52cf..bf7a45e 100644 --- a/DokterApp/WindowTabs.xaml +++ b/DokterApp/WindowTabs.xaml @@ -7,14 +7,9 @@ mc:Ignorable="d" Title="WindowTabs" Height="450" Width="800"> - - - - - - - + +