コード例 #1
0
        private void Todaynews_Load(object sender, EventArgs e)
        {
            Todaynews wr = new Todaynews();

            wr.TopMost = true;
            MarvelJPA fc = Application.OpenForms["Todaynews "] != null ? (MarvelJPA)Application.OpenForms["Todaynews "] : null;

            if (fc != null)
            {
                fc.Close();
            }
            convertedtxt.Text = string.Empty;
            labelnet.Text     = NetworkInterface.GetIsNetworkAvailable().ToString();
            if (labelnet.Text != "True")
            {
                Marvel.SpeakAsync("Please check your internet connection, before the news broadcast panel, work properly");
                this.Close();
            }
            else
            {
                Marvel.SpeakAsync("today latest news is");
                getgooglenewsbtn.PerformClick();
            }
            ////////////////////////commands ///////////////////////////////////
            //////////////here voice search ////////////////////////////

            ////////////////////////end here ///////////////////////////////////

            // Start listening for clipboard changes
        }
コード例 #2
0
        private void pictureBox6_Click(object sender, EventArgs e)
        {
            Todaynews tdn = new Todaynews();

            tdn.Show();
            tdn.TopMost = true;
        }