Skip to content

Commit fccb7ee

Browse files
author
DjArt
committed
DialPage cleaned
1 parent 991e849 commit fccb7ee

File tree

2 files changed

+2
-29
lines changed

2 files changed

+2
-29
lines changed

WoADialer/UI/Pages/DialPage.xaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
xmlns:controls="using:WoADialer.UI.Controls"
99
mc:Ignorable="d"
1010
NavigationCacheMode="Required"
11-
Loaded="Page_Loaded"
1211
Background="{ThemeResource SystemControlAcrylicWindowBrush}">
1312

1413
<Grid Padding="12">
@@ -52,16 +51,7 @@
5251
HorizontalAlignment="Stretch"
5352
FontSize="24" />
5453
</Grid>
55-
56-
<TextBlock x:Name="callStateIndicatorText"
57-
Grid.Row="1"
58-
Grid.Column="0"
59-
Text="AAAA"
60-
Margin="10, 0, 0, 0"
61-
Style="{ThemeResource FluentSubbodyTextStyle}" HorizontalAlignment="Left" Width="157"/>
62-
63-
<ListView Name="lv_CallHistory" Grid.Row="2"/>
64-
54+
6555
<controls:DialPad Grid.Row="3" MinHeight="250" DigitTapped="NumPad_DigitTapped"/>
6656

6757
<!-- Call button -->

WoADialer/UI/Pages/DialPage.xaml.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@
77
using WoADialer.Helpers;
88
using WoADialer.Model;
99

10-
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
11-
1210
namespace WoADialer.UI.Pages
1311
{
14-
/// <summary>
15-
/// An empty page that can be used on its own or navigated to within a Frame.
16-
/// </summary>
1712
public sealed partial class DialPage : Page
1813
{
1914
private PhoneNumber currentNumber;
@@ -24,18 +19,6 @@ public DialPage()
2419
this.InitializeComponent();
2520
}
2621

27-
private void Page_Loaded(object sender, RoutedEventArgs e)
28-
{
29-
try
30-
{
31-
//_CurrentPhoneLine = await PhoneLine.FromIdAsync(await App.Current.CallStore.GetDefaultLineAsync());
32-
}
33-
catch
34-
{
35-
36-
}
37-
}
38-
3922
private void DeleteLastNumberButton_Click(object sender, RoutedEventArgs e)
4023
{
4124
currentNumber.RemoveLastChar();
@@ -71,7 +54,7 @@ private async void CallButton_Click(object sender, RoutedEventArgs e)
7154
try
7255
{
7356
_CurrentPhoneLine = await PhoneLine.FromIdAsync(await App.Current.CallSystem.CallStore.GetDefaultLineAsync());
74-
_CurrentPhoneLine.DialWithOptions(new PhoneDialOptions() { Number = currentNumber.ToString() });
57+
_CurrentPhoneLine?.DialWithOptions(new PhoneDialOptions() { Number = currentNumber.ToString() });
7558
}
7659
catch (Exception ee)
7760
{

0 commit comments

Comments
 (0)