wip config ui
This commit is contained in:
		
							
								
								
									
										9
									
								
								ConfigUI/App.xaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								ConfigUI/App.xaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
<Application x:Class="ConfigUI.App"
 | 
			
		||||
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 | 
			
		||||
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 | 
			
		||||
             xmlns:local="clr-namespace:ConfigUI"
 | 
			
		||||
             StartupUri="MainWindow.xaml">
 | 
			
		||||
    <Application.Resources>
 | 
			
		||||
         
 | 
			
		||||
    </Application.Resources>
 | 
			
		||||
</Application>
 | 
			
		||||
							
								
								
									
										17
									
								
								ConfigUI/App.xaml.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								ConfigUI/App.xaml.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Configuration;
 | 
			
		||||
using System.Data;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using System.Windows;
 | 
			
		||||
 | 
			
		||||
namespace ConfigUI
 | 
			
		||||
{
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// Interaction logic for App.xaml
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    public partial class App : Application
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										10
									
								
								ConfigUI/AssemblyInfo.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								ConfigUI/AssemblyInfo.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
using System.Windows;
 | 
			
		||||
 | 
			
		||||
[assembly: ThemeInfo(
 | 
			
		||||
    ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
 | 
			
		||||
                                     //(used if a resource is not found in the page,
 | 
			
		||||
                                     // or application resource dictionaries)
 | 
			
		||||
    ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
 | 
			
		||||
                                              //(used if a resource is not found in the page,
 | 
			
		||||
                                              // app, or any theme specific resource dictionaries)
 | 
			
		||||
)]
 | 
			
		||||
							
								
								
									
										14
									
								
								ConfigUI/ConfigUI.csproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								ConfigUI/ConfigUI.csproj
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
<Project Sdk="Microsoft.NET.Sdk">
 | 
			
		||||
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <OutputType>WinExe</OutputType>
 | 
			
		||||
    <TargetFramework>net6.0-windows</TargetFramework>
 | 
			
		||||
    <Nullable>enable</Nullable>
 | 
			
		||||
    <UseWPF>true</UseWPF>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <PackageReference Include="MvvmCross" Version="9.0.2" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
</Project>
 | 
			
		||||
							
								
								
									
										14
									
								
								ConfigUI/ConfigUI.csproj.user
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								ConfigUI/ConfigUI.csproj.user
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
			
		||||
  <PropertyGroup />
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ApplicationDefinition Update="App.xaml">
 | 
			
		||||
      <SubType>Designer</SubType>
 | 
			
		||||
    </ApplicationDefinition>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Page Update="MainWindow.xaml">
 | 
			
		||||
      <SubType>Designer</SubType>
 | 
			
		||||
    </Page>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
</Project>
 | 
			
		||||
							
								
								
									
										53
									
								
								ConfigUI/MainWindow.xaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								ConfigUI/MainWindow.xaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,53 @@
 | 
			
		||||
<Window x:Class="ConfigUI.MainWindow"
 | 
			
		||||
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 | 
			
		||||
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 | 
			
		||||
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 | 
			
		||||
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 | 
			
		||||
        xmlns:local="clr-namespace:ConfigUI"
 | 
			
		||||
        mc:Ignorable="d"
 | 
			
		||||
        Title="MainWindow" Height="450" Width="800">
 | 
			
		||||
    <Grid>
 | 
			
		||||
        <Grid.RowDefinitions>
 | 
			
		||||
            <RowDefinition Height="0*"/>
 | 
			
		||||
            <RowDefinition Height="8*"/>
 | 
			
		||||
            <RowDefinition Height="0*"/>
 | 
			
		||||
        </Grid.RowDefinitions>
 | 
			
		||||
        <Grid.ColumnDefinitions>
 | 
			
		||||
            <ColumnDefinition Width="0*"/>
 | 
			
		||||
            <ColumnDefinition Width="3*"/>
 | 
			
		||||
            <ColumnDefinition Width="3*"/>
 | 
			
		||||
            <ColumnDefinition Width="3*"/>
 | 
			
		||||
            <ColumnDefinition Width="0*"/>
 | 
			
		||||
        </Grid.ColumnDefinitions>
 | 
			
		||||
        <ListBox Grid.Row="1" Grid.Column="1" Margin="10"/>
 | 
			
		||||
        <Grid Grid.Row="1" Grid.Column="3">
 | 
			
		||||
            <Grid.RowDefinitions>
 | 
			
		||||
                <RowDefinition Height="1*"/>
 | 
			
		||||
                <RowDefinition Height="1*"/>
 | 
			
		||||
                <RowDefinition Height="1*"/>
 | 
			
		||||
                <RowDefinition Height="1*"/>
 | 
			
		||||
                <RowDefinition Height="1*"/>
 | 
			
		||||
                <RowDefinition Height="2*"/>
 | 
			
		||||
            </Grid.RowDefinitions>
 | 
			
		||||
            <TextBox Grid.Row="0" Text="Systemname" Margin="10" VerticalContentAlignment="Center"/>
 | 
			
		||||
            <TextBox Grid.Row="1" Text="Entityname" Margin="10" VerticalContentAlignment="Center"/>
 | 
			
		||||
            <TextBox Grid.Row="2" Text="MQTTUsername" Margin="10" VerticalContentAlignment="Center"/>
 | 
			
		||||
            <TextBox Grid.Row="3" Text="MQTTPassword" Margin="10" VerticalContentAlignment="Center"/>
 | 
			
		||||
            <TextBox Grid.Row="4" Text="MQTTHostname" Margin="10" VerticalContentAlignment="Center"/>
 | 
			
		||||
            <TextBox Grid.Row="4" Text="Timeout Seconds" Margin="10" VerticalContentAlignment="Center"/>
 | 
			
		||||
            <Grid Grid.Row="5">
 | 
			
		||||
                <Grid.RowDefinitions>
 | 
			
		||||
                    <RowDefinition Height="4*"/>
 | 
			
		||||
                    <RowDefinition Height="3*"/>
 | 
			
		||||
                    <RowDefinition Height="1*"/>
 | 
			
		||||
                </Grid.RowDefinitions>
 | 
			
		||||
                <Grid.ColumnDefinitions>
 | 
			
		||||
                    <ColumnDefinition Width="6*"/>
 | 
			
		||||
                    <ColumnDefinition Width="6*"/>
 | 
			
		||||
                    <ColumnDefinition Width="1*"/>
 | 
			
		||||
                </Grid.ColumnDefinitions>
 | 
			
		||||
                <Button Grid.Row="1" Grid.Column="1" Content="Save"/>
 | 
			
		||||
            </Grid>
 | 
			
		||||
        </Grid>
 | 
			
		||||
    </Grid>
 | 
			
		||||
</Window>
 | 
			
		||||
							
								
								
									
										28
									
								
								ConfigUI/MainWindow.xaml.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								ConfigUI/MainWindow.xaml.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Text;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using System.Windows;
 | 
			
		||||
using System.Windows.Controls;
 | 
			
		||||
using System.Windows.Data;
 | 
			
		||||
using System.Windows.Documents;
 | 
			
		||||
using System.Windows.Input;
 | 
			
		||||
using System.Windows.Media;
 | 
			
		||||
using System.Windows.Media.Imaging;
 | 
			
		||||
using System.Windows.Navigation;
 | 
			
		||||
using System.Windows.Shapes;
 | 
			
		||||
 | 
			
		||||
namespace ConfigUI
 | 
			
		||||
{
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// Interaction logic for MainWindow.xaml
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    public partial class MainWindow : Window
 | 
			
		||||
    {
 | 
			
		||||
        public MainWindow()
 | 
			
		||||
        {
 | 
			
		||||
            InitializeComponent();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user