Наследование: 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);
            }
        }