mirror of
https://github.com/espressif/openthread.git
synced 2026-11-09 07:50:55 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user