Inheritance: INotifyPropertyChanged
コード例 #1
0
        private void RemoveButton_Clicked(object sender, RoutedEventArgs e)
        {
            StreamData data = Streams[this.AppList.SelectedIndex];

            App.ProfilerApp.Manager.CloseStream(data.stream);
            data.stream.Dispose();

            this.streams.RemoveAt(this.AppList.SelectedIndex);
        }
コード例 #2
0
        private void AddButton_Clicked(object sender, RoutedEventArgs e)
        {
            AddAppDialog dialog = new AddAppDialog();
            dialog.Owner = this;

            bool? result = dialog.ShowDialog();

            if (result.HasValue && result.Value && dialog.RemoteAppName != null && dialog.RemoteAppName.Length > 0)
            {
                HoloToolkit.Sharing.ProfilerStream xStream = App.ProfilerApp.Manager.CreateStream(dialog.RemoteAppName, dialog.RemoteAppRole);

                StreamData streamData = new StreamData(xStream, dialog.RemoteAppName);
                this.streams.Add(streamData);
            }
        }
コード例 #3
0
        private void AddButton_Clicked(object sender, RoutedEventArgs e)
        {
            AddAppDialog dialog = new AddAppDialog();

            dialog.Owner = this;

            bool?result = dialog.ShowDialog();

            if (result.HasValue && result.Value && dialog.RemoteAppName != null && dialog.RemoteAppName.Length > 0)
            {
                HoloToolkit.Sharing.ProfilerStream xStream = App.ProfilerApp.Manager.CreateStream(dialog.RemoteAppName, dialog.RemoteAppRole);

                StreamData streamData = new StreamData(xStream, dialog.RemoteAppName);
                this.streams.Add(streamData);
            }
        }