diff --git a/doc/images/windows-app-details.png b/doc/images/windows-app-details.png index be3e3c5fb..a8be63924 100644 Binary files a/doc/images/windows-app-details.png and b/doc/images/windows-app-details.png differ diff --git a/doc/images/windows-app-interface-list.png b/doc/images/windows-app-interface-list.png index 8fdde7d13..be71b98cc 100644 Binary files a/doc/images/windows-app-interface-list.png and b/doc/images/windows-app-interface-list.png differ diff --git a/doc/images/windows-app-talk-client.png b/doc/images/windows-app-talk-client.png new file mode 100644 index 000000000..f59a24f9c Binary files /dev/null and b/doc/images/windows-app-talk-client.png differ diff --git a/doc/images/windows-app-talk-server.png b/doc/images/windows-app-talk-server.png new file mode 100644 index 000000000..7496344c9 Binary files /dev/null and b/doc/images/windows-app-talk-server.png differ diff --git a/etc/visual-studio/OpenThread.vcxproj b/etc/visual-studio/OpenThread.vcxproj index f2a392e57..ba8beba6b 100644 --- a/etc/visual-studio/OpenThread.vcxproj +++ b/etc/visual-studio/OpenThread.vcxproj @@ -59,6 +59,19 @@ + + + ..\..\examples\apps\windows\ClientControl.xaml + + + + + + + + + + @@ -68,14 +81,33 @@ ..\..\examples\apps\windows\MainPage.xaml + + ..\..\examples\apps\windows\ServerControl.xaml + + + + + + ..\..\examples\apps\windows\TalkGrid.xaml + + Designer + + Designer + Designer + + Designer + + + Designer + @@ -96,12 +128,26 @@ ..\..\examples\apps\windows\App.xaml + + ..\..\examples\apps\windows\ClientControl.xaml + + + + ..\..\examples\apps\windows\MainPage.xaml Create + + ..\..\examples\apps\windows\ServerControl.xaml + + + + + ..\..\examples\apps\windows\TalkGrid.xaml + diff --git a/etc/visual-studio/OpenThread.vcxproj.filters b/etc/visual-studio/OpenThread.vcxproj.filters index 6fc36479f..5fb431551 100644 --- a/etc/visual-studio/OpenThread.vcxproj.filters +++ b/etc/visual-studio/OpenThread.vcxproj.filters @@ -16,6 +16,14 @@ + + + + + + + + @@ -23,6 +31,23 @@ + + + + + + + + + + + + + + + + + @@ -55,5 +80,8 @@ + + + \ No newline at end of file diff --git a/examples/apps/windows/ClientArgs.h b/examples/apps/windows/ClientArgs.h new file mode 100644 index 000000000..6b11c9336 --- /dev/null +++ b/examples/apps/windows/ClientArgs.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2016, The OpenThread Authors. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the copyright holder nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#pragma once + +namespace Thread +{ + +public ref class ClientArgs sealed +{ +public: + property Windows::Networking::HostName^ ServerHostName; + property Platform::String^ ServerPort; + property Windows::Networking::HostName^ ClientHostName; + property Platform::String^ ClientPort; +}; + +} // namespace Thread diff --git a/examples/apps/windows/ClientControl.xaml b/examples/apps/windows/ClientControl.xaml new file mode 100644 index 000000000..927ba48a8 --- /dev/null +++ b/examples/apps/windows/ClientControl.xaml @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +