aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.UsersAndRoles/Views/AddressView.xaml
blob: 937cf14ddf73130f0486308ce80df4a2397206cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<UserControl x:Class="Tango.MachineStudio.UsersAndRoles.Views.AddressView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:vm="clr-namespace:Tango.MachineStudio.UsersAndRoles.ViewModels"
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:autoComplete="clr-namespace:Tango.AutoComplete.Editors;assembly=Tango.AutoComplete"
             xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
             xmlns:mahApps="http://metro.mahapps.com/winfx/xaml/controls"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:entities="clr-namespace:Tango.BL.Entities;assembly=Tango.BL"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Tango.MachineStudio.UsersAndRoles.Views"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" d:DataContext="{d:DesignInstance Type=entities:Address, IsDesignTimeCreatable=False}">
    <Grid>
        <controls:TableGrid>
            <TextBlock Text="COUNTRY"></TextBlock>
            <TextBox Text="{Binding Country}" />
            <TextBlock Text="COUNTRY CODE"></TextBlock>
            <TextBox IsReadOnly="True" Text="{Binding CountryCode}"></TextBox>
            <TextBlock Text="STATE"></TextBlock>
            <TextBox Text="{Binding State}"></TextBox>
            <TextBlock Text="CITY"></TextBlock>
            <TextBox Text="{Binding City}" />
            <TextBlock Text="POSTAL CODE"></TextBlock>
            <TextBox Text="{Binding PostalCode}"></TextBox>
            <TextBlock Text="LOCALITY"></TextBlock>
            <TextBox Text="{Binding Locality}" />
            <TextBlock Text="ADDRESS"></TextBlock>
            <TextBox Text="{Binding AddressString}"></TextBox>
        </controls:TableGrid>
    </Grid>
</UserControl>
pan class="cm"> stubManager.WriteLine("OK!"); } } */ // Request ---- // Double : DryerZone1Temp // Double : DryerZone2Temp // RepeatedField`1 : HardwarePidControl // RepeatedField`1 : ProcessParameters // Response ---- // UInt32 : HeaterGroupId // UInt32 : Zone1Temp // UInt32 : Zone2Temp // Boolean : Heater1Active // Boolean : Heater2Active // UInt32 : Heater1Percentage // UInt32 : Heater2Percentage HardwarePidControl Pid1 = new HardwarePidControl(); HardwarePidControl Pid2 = new HardwarePidControl(); //Pid1.has_hardwarepidcontroltype = true; Pid1.HardwarePidControlType = (HardwarePidControlType)0; // Pid1.has_outputproportionalpowerlimit = true; Pid1.OutputProportionalPowerLimit = 50; // Pid1.has_outputproportionalband = true; Pid1.OutputProportionalBand = 3; // Pid1.has_kp = true; Pid1.SensorCorrectionAdjustment = 2.0; //Pid1.has_ki = true; Pid1.IntegralTime = 0.01; //Pid2.has_hardwarepidcontroltype = true; Pid2.HardwarePidControlType = (HardwarePidControlType)1; // Pid2.has_outputproportionalpowerlimit = true; Pid2.OutputProportionalPowerLimit = 40; // Pid2.has_outputproportionalband = true; Pid2.OutputProportionalBand = 3; // Pid2.has_kp = true; Pid2.SensorCorrectionAdjustment = 0.5; //Pid2.has_ki = true; Pid2.IntegralTime = 0.1; var response = stubManager.Run<StubHeatingTestResponse>("StubHeatingTestRequest" ,200.0, 0.0, Pid1, Pid2); int i=0; // Request ---- // Response ---- // UInt32 : HeaterGroupId // UInt32 : Zone1Temp // UInt32 : Zone2Temp // Boolean : Heater1Active // Boolean : Heater2Active // UInt32 : Heater1Percentage // UInt32 : Heater2Percentage //StubHeatingTestPollResponse response1; stubManager.RunContinuous<StubHeatingTestPollResponse>("StubHeatingTestPollRequest",(response1) => { stubManager.WriteLine (String.Format("Data, {0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}",++i,response1.Zone1Temp,response1.Zone2Temp,response1.Heater1Active,response1.Heater2Active,response1.Heater1Percentage,response1.Heater2Percentage,response1.InfoMessage)); },0); /*stubManager.RunContinuous<DebugLogResponse>("DebugLogRequest",(response2) => { stubManager.WriteLine (String.Format("Report, {0}, {1}, {2}",response2.FileName,response2.LineNumber,response2.Message)); },0); */ }