Skip to content

Commit

Permalink
DialPage cleaned
Browse files Browse the repository at this point in the history
  • Loading branch information
DjArt committed Aug 23, 2019
1 parent 991e849 commit fccb7ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
12 changes: 1 addition & 11 deletions WoADialer/UI/Pages/DialPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
xmlns:controls="using:WoADialer.UI.Controls"
mc:Ignorable="d"
NavigationCacheMode="Required"
Loaded="Page_Loaded"
Background="{ThemeResource SystemControlAcrylicWindowBrush}">

<Grid Padding="12">
Expand Down Expand Up @@ -52,16 +51,7 @@
HorizontalAlignment="Stretch"
FontSize="24" />
</Grid>

<TextBlock x:Name="callStateIndicatorText"
Grid.Row="1"
Grid.Column="0"
Text="AAAA"
Margin="10, 0, 0, 0"
Style="{ThemeResource FluentSubbodyTextStyle}" HorizontalAlignment="Left" Width="157"/>

<ListView Name="lv_CallHistory" Grid.Row="2"/>


<controls:DialPad Grid.Row="3" MinHeight="250" DigitTapped="NumPad_DigitTapped"/>

<!-- Call button -->
Expand Down
19 changes: 1 addition & 18 deletions WoADialer/UI/Pages/DialPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@
using WoADialer.Helpers;
using WoADialer.Model;

// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238

namespace WoADialer.UI.Pages
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class DialPage : Page
{
private PhoneNumber currentNumber;
Expand All @@ -24,18 +19,6 @@ public DialPage()
this.InitializeComponent();
}

private void Page_Loaded(object sender, RoutedEventArgs e)
{
try
{
//_CurrentPhoneLine = await PhoneLine.FromIdAsync(await App.Current.CallStore.GetDefaultLineAsync());
}
catch
{

}
}

private void DeleteLastNumberButton_Click(object sender, RoutedEventArgs e)
{
currentNumber.RemoveLastChar();
Expand Down Expand Up @@ -71,7 +54,7 @@ private async void CallButton_Click(object sender, RoutedEventArgs e)
try
{
_CurrentPhoneLine = await PhoneLine.FromIdAsync(await App.Current.CallSystem.CallStore.GetDefaultLineAsync());
_CurrentPhoneLine.DialWithOptions(new PhoneDialOptions() { Number = currentNumber.ToString() });
_CurrentPhoneLine?.DialWithOptions(new PhoneDialOptions() { Number = currentNumber.ToString() });
}
catch (Exception ee)
{
Expand Down

0 comments on commit fccb7ee

Please sign in to comment.