-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
95 lines (94 loc) · 3.11 KB
/
MainWindow.xaml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<Window x:Class="Attenuator.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:Attenuator"
mc:Ignorable="d"
ResizeMode="NoResize"
Title="MainWindow" Height="700" Width="600" Background="White">
<Grid Background="White">
<TextBox
Name="input_z"
Margin="20,20,400,610"
Background="white"
BorderBrush="black"
BorderThickness="3"
FontSize="15">
</TextBox>
<TextBlock
Margin="250,20,20,610"
Text="Значение Z (импеданс)"
FontSize="15">
</TextBlock>
<TextBox
Name="input_r"
Margin="20,80,400,550"
Background="white"
BorderBrush="black"
BorderThickness="3"
FontSize="15">
</TextBox>
<TextBlock
Margin="250, 80,20 550"
Text="Значение R (сопротивление для П-образного)"
FontSize="15">
</TextBlock>
<TextBox
Name="input_k"
Margin="20,140,400,490"
Background="white"
BorderBrush="black"
BorderThickness="3"
FontSize="15">
</TextBox>
<TextBlock
Margin="250,140,20,476"
Text="Значение К (коэффициент импеданса для Т-образного)"
FontSize="15"
TextWrapping="Wrap">
</TextBlock>
<!--<TextBox
Name="input_r2"
Margin="20,199,400,431"
Background="white"
BorderBrush="black"
BorderThickness="3"
FontSize="15"/>
<TextBlock
Margin="250,199,20,420"
Text="Значение R2 (сопротивление центрального плеча)"
TextWrapping="Wrap"
FontSize="15"/>-->
<Button
Margin="20,213,320,417"
Content="Рассчитать П-образный"
FontSize="15"
Background="Black"
Foreground="White"
Click="CalculateP">
</Button>
<Button
Margin="330,213,10,417"
Content="Рассчитать Т-образный"
FontSize="15"
Background="Black"
Foreground="White"
Click="CalculateT">
</Button>
<!--<Button
Content="Сохранить в Excel"
Margin="20,331,10,299"
FontSize="15"
Background="Black"
Foreground="White"
Click="SaveToExcel">
</Button>-->
<TextBlock
Name="output"
Margin="20,282,20,20"
TextWrapping="Wrap"
FontSize="15">
</TextBlock>
</Grid>
</Window>