Reorder tabs
This commit is contained in:
parent
7d6000e3b6
commit
0701cb3970
@ -1,9 +1,7 @@
|
|||||||
using Avalonia;
|
using Avalonia;
|
||||||
using Avalonia.Collections;
|
using Avalonia.Collections;
|
||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using DataLayer;
|
|
||||||
using HangoverAvalonia.ViewModels;
|
using HangoverAvalonia.ViewModels;
|
||||||
using NPOI.XSSF.Streaming.Properties;
|
|
||||||
using ReactiveUI;
|
using ReactiveUI;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
using Avalonia;
|
using Avalonia;
|
||||||
using Avalonia.Controls.ApplicationLifetimes;
|
|
||||||
using Avalonia.ReactiveUI;
|
using Avalonia.ReactiveUI;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
using HangoverBase;
|
using HangoverBase;
|
||||||
using ReactiveUI;
|
using ReactiveUI;
|
||||||
using System;
|
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace HangoverAvalonia.ViewModels
|
namespace HangoverAvalonia.ViewModels
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
using ApplicationServices;
|
using ApplicationServices;
|
||||||
using DataLayer;
|
using DataLayer;
|
||||||
using ReactiveUI;
|
using ReactiveUI;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace HangoverAvalonia.ViewModels
|
namespace HangoverAvalonia.ViewModels
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,18 +1,11 @@
|
|||||||
using System;
|
|
||||||
using ApplicationServices;
|
|
||||||
using DataLayer;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using HangoverBase;
|
|
||||||
using ReactiveUI;
|
|
||||||
|
|
||||||
namespace HangoverAvalonia.ViewModels
|
namespace HangoverAvalonia.ViewModels
|
||||||
{
|
{
|
||||||
public partial class MainVM : ViewModelBase
|
public partial class MainVM : ViewModelBase
|
||||||
{
|
{
|
||||||
public MainVM()
|
public MainVM()
|
||||||
{
|
{
|
||||||
Load_databaseVM();
|
Load_databaseVM();
|
||||||
Load_deletedVM();
|
Load_deletedVM();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,4 @@
|
|||||||
using ReactiveUI;
|
using ReactiveUI;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace HangoverAvalonia.ViewModels
|
namespace HangoverAvalonia.ViewModels
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace HangoverAvalonia.Views
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace HangoverAvalonia.Views
|
|
||||||
{
|
{
|
||||||
public partial class MainWindow
|
public partial class MainWindow
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,11 +1,4 @@
|
|||||||
using HangoverAvalonia.ViewModels;
|
namespace HangoverAvalonia.Views
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace HangoverAvalonia.Views
|
|
||||||
{
|
{
|
||||||
public partial class MainWindow
|
public partial class MainWindow
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
using ApplicationServices;
|
using ApplicationServices;
|
||||||
using DataLayer;
|
using DataLayer;
|
||||||
using HangoverAvalonia.Controls;
|
using HangoverAvalonia.Controls;
|
||||||
using System;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace HangoverAvalonia.Views
|
namespace HangoverAvalonia.Views
|
||||||
|
|||||||
@ -31,44 +31,6 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</TabControl.Styles>
|
</TabControl.Styles>
|
||||||
|
|
||||||
<!-- Deleted Books Tab -->
|
|
||||||
<TabItem Name="deletedTab">
|
|
||||||
<TabItem.Header>
|
|
||||||
<TextBlock FontSize="14" VerticalAlignment="Center">Deleted Books</TextBlock>
|
|
||||||
</TabItem.Header>
|
|
||||||
|
|
||||||
<Grid
|
|
||||||
RowDefinitions="Auto,*,Auto">
|
|
||||||
|
|
||||||
<TextBlock
|
|
||||||
Grid.Row="0"
|
|
||||||
Margin="5"
|
|
||||||
Text="To restore deleted book, check box and save" />
|
|
||||||
|
|
||||||
<controls:CheckedListBox
|
|
||||||
Grid.Row="1"
|
|
||||||
Margin="5,0,5,0"
|
|
||||||
BorderThickness="1"
|
|
||||||
BorderBrush="Gray"
|
|
||||||
Name="deletedCbl"
|
|
||||||
Items="{Binding DeletedBooks}" />
|
|
||||||
|
|
||||||
<Grid
|
|
||||||
Grid.Row="2"
|
|
||||||
Margin="5"
|
|
||||||
ColumnDefinitions="Auto,Auto,Auto,*">
|
|
||||||
|
|
||||||
<Button Grid.Column="0" Margin="0,0,20,0" Content="Check All" Click="Deleted_CheckAll_Click" />
|
|
||||||
<Button Grid.Column="1" Margin="0,0,20,0" Content="Uncheck All" Click="Deleted_UncheckAll_Click" />
|
|
||||||
<TextBlock Grid.Column="2" VerticalAlignment="Center" Text="{Binding CheckedCountText}" />
|
|
||||||
<Button Grid.Column="3" HorizontalAlignment="Right" Content="Save" Click="Deleted_Save_Click" />
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
|
|
||||||
</TabItem>
|
|
||||||
|
|
||||||
<!-- Database Tab -->
|
<!-- Database Tab -->
|
||||||
<TabItem Name="databaseTab">
|
<TabItem Name="databaseTab">
|
||||||
<TabItem.Header>
|
<TabItem.Header>
|
||||||
@ -106,6 +68,42 @@
|
|||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
||||||
|
<!-- Deleted Books Tab -->
|
||||||
|
<TabItem Name="deletedTab">
|
||||||
|
<TabItem.Header>
|
||||||
|
<TextBlock FontSize="14" VerticalAlignment="Center">Deleted Books</TextBlock>
|
||||||
|
</TabItem.Header>
|
||||||
|
|
||||||
|
<Grid
|
||||||
|
RowDefinitions="Auto,*,Auto">
|
||||||
|
|
||||||
|
<TextBlock
|
||||||
|
Grid.Row="0"
|
||||||
|
Margin="5"
|
||||||
|
Text="To restore deleted book, check box and save" />
|
||||||
|
|
||||||
|
<controls:CheckedListBox
|
||||||
|
Grid.Row="1"
|
||||||
|
Margin="5,0,5,0"
|
||||||
|
BorderThickness="1"
|
||||||
|
BorderBrush="Gray"
|
||||||
|
Name="deletedCbl"
|
||||||
|
Items="{Binding DeletedBooks}" />
|
||||||
|
|
||||||
|
<Grid
|
||||||
|
Grid.Row="2"
|
||||||
|
Margin="5"
|
||||||
|
ColumnDefinitions="Auto,Auto,Auto,*">
|
||||||
|
|
||||||
|
<Button Grid.Column="0" Margin="0,0,20,0" Content="Check All" Click="Deleted_CheckAll_Click" />
|
||||||
|
<Button Grid.Column="1" Margin="0,0,20,0" Content="Uncheck All" Click="Deleted_UncheckAll_Click" />
|
||||||
|
<TextBlock Grid.Column="2" VerticalAlignment="Center" Text="{Binding CheckedCountText}" />
|
||||||
|
<Button Grid.Column="3" HorizontalAlignment="Right" Content="Save" Click="Deleted_Save_Click" />
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</TabItem>
|
||||||
|
|
||||||
<!-- Command Line Interface Tab -->
|
<!-- Command Line Interface Tab -->
|
||||||
<TabItem Name="cliTab">
|
<TabItem Name="cliTab">
|
||||||
<TabItem.Header>
|
<TabItem.Header>
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
using AppScaffolding;
|
using AppScaffolding;
|
||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using HangoverAvalonia.ViewModels;
|
using HangoverAvalonia.ViewModels;
|
||||||
using System;
|
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace HangoverAvalonia.Views
|
namespace HangoverAvalonia.Views
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user