This commit is contained in:
sc committed 2024-12-17 23:48:52 +08:00
commit 605976c73a
3 files changed
+20 -52

No files matched your search

+1 -7
View File
@@ -21,13 +21,7 @@
<RowDefinition Height="60"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<lvc:CartesianChart Series="{Binding Series}" XAxes="{Binding XAxes}" TooltipPosition="Hidden">
</lvc:CartesianChart>
<WebBrowser Name="webBrowser" />
</Grid>
<StackPanel x:Name="scr" Grid.Row="1" Height="60" Background="#FF00204E" Orientation="Horizontal">
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD">
+18 -2
View File
@@ -41,7 +41,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
public ProductionPlanningView()
{
InitializeComponent();
DataContext = new ProductionPlanningModel();
}
private SQLiteHelper SQLiteHelpers = null; //定义数据库
@@ -49,7 +48,24 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
private void UserControl_Loaded(object sender, RoutedEventArgs e)//打开页面时的操作
{
string html = @"
<html>
<head>
<script type='text/javascript'>
function showMessage() {
alert('Hello from JavaScript!');
}
</script>
</head>
<body>
<button onclick='showMessage()'>Click Me</button>
</body>
</html>";
webBrowser.NavigateToString(html);
}
private void ListViewItem_Quit(object sender, System.Windows.Input.MouseButtonEventArgs e)//退出事件