Win/app updates2 (#1473)

* add talk functionality to OpenThread.vcxproj

* update README.md

* fixed according to Section 4 of RFC 5952 (CR by aeliot)

* fix removing an empty context bug (can't remove twice)
This commit is contained in:
jjlee9
2017-03-21 08:44:35 -07:00
committed by Jonathan Hui
parent 27c1cb301b
commit 36ff8022dc
39 changed files with 3405 additions and 240 deletions
+22
View File
@@ -28,6 +28,7 @@
#include "pch.h"
#include "MainPage.xaml.h"
#include "TalkGrid.xaml.h"
using namespace Thread;
@@ -82,6 +83,15 @@ MainPage::MainPage() : _otApi(nullptr)
this->InterfaceDetails->Visibility = Windows::UI::Xaml::Visibility::Collapsed;
}
);
Talk->Click +=
ref new RoutedEventHandler(
[=](Platform::Object^, RoutedEventArgs^) {
this->ThreadGrid->Visibility = Windows::UI::Xaml::Visibility::Collapsed;
this->TalkGrid->Visibility = Windows::UI::Xaml::Visibility::Visible;
}
);
TlkGrid->Init(this);
}
void MainPage::OnNavigatedTo(NavigationEventArgs^ e)
@@ -395,3 +405,15 @@ void MainPage::DisconnectNetwork(otAdapter^ adapter)
}
}
Windows::UI::Xaml::UIElement^
MainPage::ThreadGrid::get()
{
return ThrdGrid;
}
Windows::UI::Xaml::UIElement^
MainPage::TalkGrid::get()
{
return TlkGrid;
}