Esempio n. 1
0
        private void LV_stations_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (LV_stations.SelectedItem == null)
            {
                return;
            }
            if (LV_stations.SelectedItem == Organizer_MainView)
            {
                return;
            }
            else
            {
                if (Organizer_MainView.Close_stream != false)
                {
                    binding_controls();

                    clicked = true;
                    Organizer_MainView.Close_stream = false;
                    List_Stations.ImageSource       = Parse_Imagepath_to_ImageSource("/Resources/Images/stop2.png");

                    Streaming_http = new Streaming_http(Organizer_MainView);
                    Streaming_http.Run();
                }
                else
                {
                    Organizer_MainView.Close_stream = true;

                    Organizer_MainView             = (Organizer_MainView)LV_stations.SelectedItem;
                    List_Stations.Selected_Station = Organizer_MainView;

                    binding_controls();

                    clicked = true;
                    Organizer_MainView.Close_stream = false;
                    List_Stations.ImageSource       = Parse_Imagepath_to_ImageSource("/Resources/Images/stop2.png");

                    Streaming_http = new Streaming_http(Organizer_MainView);
                    Streaming_http.Run();
                }
            }
        }
Esempio n. 2
0
        private void btn_play_Click(object sender, RoutedEventArgs e)
        {
            bool clicking = true;

            if (clicked != clicking)
            {
                clicked = true;
                Organizer_MainView.Close_stream = false;
                List_Stations.ImageSource       = Parse_Imagepath_to_ImageSource("/Resources/Images/stop2.png");


                Streaming_http = new Streaming_http(Organizer_MainView);
                Streaming_http.Run();
            }
            else
            {
                clicked = false;
                Organizer_MainView.Close_stream = true;
                Organizer_MainView.State        = "Last played: ";
                List_Stations.ImageSource       = Parse_Imagepath_to_ImageSource("/Resources/Images/play.png");
            }
        }