Пример #1
0
 private void linkLabel1_MouseClick(object sender, MouseEventArgs e)
 {
     try
     {
         if (e.Button != MouseButtons.Right && !string.IsNullOrEmpty(_hoso_url))
         {
             OpenProcess.OpenWeb(_hoso_url, Form1.props.BrowserPath, Form1.props.IsDefaultBrowser);
         }
         this.Close();
     }
     catch (Exception Ex)
     {
     }
 }
Пример #2
0
 private void ユーザーURLを開くToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         var ttt = (string)dataGridView2.Rows[dataGridView2.CurrentCell.RowIndex].Cells[2].Value;
         if (!string.IsNullOrEmpty(ttt))
         {
             ttt = Props.GetUserUrl(ttt);
             OpenProcess.OpenWeb(ttt, props.BrowserPath, props.IsDefaultBrowser);
             //Clipboard.SetText(ttt);
         }
     }
     catch (Exception Ex)
     {
         Debug.WriteLine(Ex.Message);
     }
 }
Пример #3
0
        private async Task work2(GetStreamInfo gsi, int f_idx)
        {
            try
            {
                //var gsi2 = await _nLiveNet.GetStreamInfo2Async(gsi.LiveId, gsi.Provider_Id);
                lists_c[f_idx].Last_Date = gsi.Col12.ToString("yyyy/MM/dd HH:mm:ss");
                lists_c[f_idx].Col14     = Comm.GetLiveNumber(gsi.LiveId);
                gsi.Col02 = await _nLiveNet.CreateImageAsync(gsi.Community_Thumbnail);

                lists_si.Add(gsi);
                var liveid = Props.GetLiveUrl(gsi.LiveId);
                if (lists_c[f_idx].Pop)
                {
                    PopupProc(gsi);
                }
                if (lists_c[f_idx].Web)
                {
                    OpenProcess.OpenWeb(liveid, props.BrowserPath, props.IsDefaultBrowser);
                }
                if (lists_c[f_idx].Sound)
                {
                    SoundProc();
                }
                if (lists_c[f_idx].App_a)
                {
                    OpenProcess.OpenProgram(liveid, props.AppA_Path);
                }
                if (lists_c[f_idx].App_b)
                {
                    OpenProcess.OpenProgram(liveid, props.AppB_Path);
                }
                if (lists_c[f_idx].App_c)
                {
                    OpenProcess.OpenProgram(liveid, props.AppC_Path);
                }
                if (lists_c[f_idx].App_d)
                {
                    OpenProcess.OpenProgram(liveid, props.AppD_Path);
                }
            }
            catch (Exception Ex)
            {
                AddLog("work2: " + Ex.Message, 2);
            }
        }