Commit 37facea

mo <email@solidware.ca>
2011-03-26 22:55:02
add button bar.
1 parent ec9a08d
product/desktop.ui/bootstrappers/ComposeShell.cs
@@ -35,8 +35,8 @@ namespace solidware.financials.windows.ui.bootstrappers
             });
 
             controller.load_region<StatusBarPresenter, StatusBarRegion>();
-            controller.load_region<SelectedFamilyMemberPresenter, SelectedFamilyMemberRegion>();
-            region_manager.region<SelectedFamilyMemberRegion>(x =>
+            controller.load_region<SelectedFamilyMemberPresenter, ButtonBar>();
+            region_manager.region<ButtonBar>(x =>
             {
                 x.AddCommand("Add Family Member", launch<AddFamilyMemberPresenter, AddFamilyMemberDialog>, UIIcon.Plus);
                 x.AddCommand("Add Income", launch<AddNewIncomeViewModel, AddNewIncomeDialog>, UIIcon.Plus);
product/desktop.ui/views/SelectedFamilyMemberRegion.xaml → product/desktop.ui/views/ButtonBar.xaml
@@ -1,4 +1,4 @@
-<UserControl x:Class="solidware.financials.windows.ui.views.SelectedFamilyMemberRegion" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+<UserControl x:Class="solidware.financials.windows.ui.views.ButtonBar" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 <DockPanel Name="DockPanel" Background="Silver">
     <ComboBox ItemsSource="{Binding family_members}" SelectedItem="{Binding SelectedMember}" Width="150"></ComboBox>
     <Label Content="{Binding Path=SelectedMember.first_name, Mode=OneWay}"/>
product/desktop.ui/views/SelectedFamilyMemberRegion.xaml.cs → product/desktop.ui/views/ButtonBar.xaml.cs
@@ -7,9 +7,9 @@ using solidware.financials.windows.ui.views.icons;
 
 namespace solidware.financials.windows.ui.views
 {
-    public partial class SelectedFamilyMemberRegion : View<SelectedFamilyMemberPresenter>
+    public partial class ButtonBar : View<SelectedFamilyMemberPresenter>
     {
-        public SelectedFamilyMemberRegion()
+        public ButtonBar()
         {
             InitializeComponent();
         }
product/desktop.ui/views/Shell.xaml
@@ -9,7 +9,7 @@
       <RowDefinition Height="24"/>
     </Grid.RowDefinitions>
     <views:MainMenu x:Name="Menu"></views:MainMenu>
-    <views:SelectedFamilyMemberRegion x:Name="SelectedFamilyMember" Grid.Row="1"></views:SelectedFamilyMemberRegion>
+    <views:ButtonBar x:Name="SelectedFamilyMember" Grid.Row="1"></views:ButtonBar>
     <ad:DockingManager x:Name="DockManager" Grid.Row="2">
       <ad:ResizingPanel Orientation="Vertical">
         <ad:ResizingPanel Orientation="Horizontal">
product/desktop.ui/views/ShellWIndow.xaml
@@ -3,7 +3,7 @@
 		<ui:MainMenu x:Name="Menu" DockPanel.Dock="Top" HorizontalAlignment="Right"></ui:MainMenu>
 		<ui:StatusBarRegion x:Name="StatusBar" DockPanel.Dock="Bottom"></ui:StatusBarRegion>
 		<StackPanel>
-			<ui:SelectedFamilyMemberRegion x:Name="SelectedFamilyMember"></ui:SelectedFamilyMemberRegion>
+			<ui:ButtonBar x:Name="SelectedFamilyMember"></ui:ButtonBar>
 			<TabControl Name="Tabs"></TabControl>
 		</StackPanel>
 	</DockPanel>
product/desktop.ui/solidware.financials.csproj
@@ -164,8 +164,8 @@
     <Compile Include="views\ImageButton.cs" />
     <Compile Include="views\MainMenu.cs" />
     <Compile Include="views\MenuItemExtensions.cs" />
-    <Compile Include="views\SelectedFamilyMemberRegion.xaml.cs">
-      <DependentUpon>SelectedFamilyMemberRegion.xaml</DependentUpon>
+    <Compile Include="views\ButtonBar.xaml.cs">
+      <DependentUpon>ButtonBar.xaml</DependentUpon>
     </Compile>
     <Compile Include="views\Shell.xaml.cs">
       <DependentUpon>Shell.xaml</DependentUpon>
@@ -231,7 +231,7 @@
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
     </Page>
-    <Page Include="views\SelectedFamilyMemberRegion.xaml">
+    <Page Include="views\ButtonBar.xaml">
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
     </Page>