diff --git a/InfoDetail.xaml b/InfoDetail.xaml
index 8396b79..e058f8d 100644
--- a/InfoDetail.xaml
+++ b/InfoDetail.xaml
@@ -2,11 +2,148 @@
+ xmlns:converters="clr-namespace:SunlightAggregationTerminal.Converters"
+ Title="细节信息">
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/InfoDetail.xaml.cs b/InfoDetail.xaml.cs
index 73e356b..f3cfc95 100644
--- a/InfoDetail.xaml.cs
+++ b/InfoDetail.xaml.cs
@@ -1,9 +1,49 @@
+using CommunityToolkit.Mvvm.ComponentModel;
+using SunlightAggregationTerminal.Models;
+using System.Reflection.PortableExecutable;
+
namespace SunlightAggregationTerminal;
public partial class InfoDetail : ContentPage
{
- public InfoDetail()
+ public InfoDetail(InfoItem item)
{
InitializeComponent();
- }
+ this.BindingContext = item;
+
+
+ }
+
+ private void Button_real(object sender, EventArgs e)
+ {
+ _real.IsVisible = true;
+ _machine.IsVisible = false;
+ _history.IsVisible = false;
+ _control.IsVisible = false;
+ }
+
+ private void Button_machine(object sender, EventArgs e)
+ {
+ _real.IsVisible = false;
+ _machine.IsVisible = true;
+ _history.IsVisible = false;
+ _control.IsVisible = false;
+ }
+
+ private void Button_history(object sender, EventArgs e)
+ {
+ _real.IsVisible = false;
+ _machine.IsVisible = false;
+ _history.IsVisible = true;
+ _control.IsVisible = false;
+ }
+
+ private async void Button_control(object sender, EventArgs e)
+ {
+ _real.IsVisible = false;
+ _machine.IsVisible = false;
+ _history.IsVisible = false;
+ _control.IsVisible = true;
+ await DisplayAlertAsync("限制", "当前功能暂不可用", "是");
+ }
}
\ No newline at end of file
diff --git a/InfoPage.xaml b/InfoPage.xaml
index 97745b4..4c75824 100644
--- a/InfoPage.xaml
+++ b/InfoPage.xaml
@@ -28,8 +28,7 @@
+ FontSize="24" TextColor="Black" Padding="5"/>
diff --git a/InfoPage.xaml.cs b/InfoPage.xaml.cs
index 7a11375..6798a40 100644
--- a/InfoPage.xaml.cs
+++ b/InfoPage.xaml.cs
@@ -14,7 +14,6 @@ public partial class InfoPage : ContentPage
public static string? _Name, _State, _MachineName, _Machine, _Information, _Model,
_Type, _ModelA, _ModelB, _ModelC, _ModelD, _ModelE, _ModelF;
-
public InfoPage()
{
InitializeComponent();
@@ -99,7 +98,7 @@ public partial class InfoPage : ContentPage
{
// DisplayAlert("提示", $"你点击了工单: {item.MachineName}", "确定");
- await Navigation.PushAsync(new InfoDetail());
+ await Navigation.PushAsync(new InfoDetail(item));
}
}
}