コード例 #1
0
        private void CirclePlayer_Startup(object sender, StartupEventArgs e)
        {
            CirclePlayerUtils Utils     = new CirclePlayerUtils();
            String            NaiveArgs = null;

            for (int i = 0; i < e.Args.Length; i++)
            {
                NaiveArgs += e.Args[i];
            }
            String[] args = (NaiveArgs == null) ? null : Utils.PlayerArgBuilder(NaiveArgs);
            if (args != null)
            {
                switch (args[0])
                {
                case "listmusic":
                    ListmusicWindow listmusicWindow = new ListmusicWindow(args[0], args[1], args[2], args[3], args[4], true);
                    Application.Current.MainWindow = listmusicWindow;
                    listmusicWindow.Show();
                    break;
                }
                return;
            }
            HomeWindow homeWindow = new HomeWindow();

            Application.Current.MainWindow = homeWindow;
            homeWindow.Show();
        }
コード例 #2
0
        private void Search_button_Click(object sender, RoutedEventArgs e)
        {
            String          inputText       = search_box.Text;
            ListmusicWindow listmusicWindow = new ListmusicWindow("listmusic", inputText, "name", "netease", "1");

            listmusicWindow.Show();
        }