private void listView1_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (listView1.FocusedItem.BackColor != Color.Red)
     {
         MessageBox.Show("It is not a webpage tuple");
     }
     else
     {
         //인자에 string 배열로 url 넘거야 듯
         WebForm wf = new WebForm();
         wf.Show();
     }
 }
        private void listView2_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            webviewUrl = new List <string>();

            long   long_date = 0;
            string htmlurl   = "";

            if (url_possible_flag)
            {
                for (int i = 0; i < sqliteinfo[listView1.FocusedItem.Index].attributes.Count; i++)
                {
                    if (sqliteinfo[listView1.FocusedItem.Index].attributes[i] == url_str)
                    {
                        htmlurl = listView2.FocusedItem.SubItems[i].Text.ToString();
                        break;
                    }
                }

                for (int i = 0; i < sqliteinfo[listView1.FocusedItem.Index].attributes.Count; i++)
                {
                    if (sqliteinfo[listView1.FocusedItem.Index].attributes[i] == date_str)
                    {
                        string long_date_str = listView2.FocusedItem.SubItems[i].Text.ToString();

                        long_date = Convert.ToInt64(long_date_str);
                        break;
                    }
                }


                DateTime sql_date;
                if (string.Equals(date_str, "last_visit_time", StringComparison.CurrentCulture))
                {
                    long time          = long_date;
                    long convertedTime = (time - 11644473600000000) / 1000000;//divide by 1000000 because we are going to add Seconds on to the base date
                    sql_date = new DateTime(1970, 1, 1, 0, 0, 0, 0);
                    sql_date = sql_date.AddSeconds(convertedTime);
                }
                else
                {
                    sql_date = SqlDate(long_date).AddHours(-9);
                }

                List <string> urls  = new List <string>();
                List <string> dates = new List <string>();

                string sql_dayStr   = sql_date.Day.ToString();
                string sql_MonthStr = sql_date.Month.ToString();

                if (sql_date.Day < 10)
                {
                    sql_dayStr = "0" + sql_dayStr;
                }
                if (sql_date.Month < 10)
                {
                    sql_MonthStr = "0" + sql_MonthStr;
                }

                string _fileName = "Urls\\" + sql_date.Year.ToString() + "-" + sql_MonthStr + "-" + sql_dayStr + ".txt";

                using (System.IO.StreamReader file =
                           new System.IO.StreamReader(_fileName, true))
                {
                    while (file.EndOfStream == false)
                    {
                        dates.Add(file.ReadLine());
                        urls.Add(file.ReadLine());
                    }
                }

                for (int i = 0; i < dates.Count; i++)
                {
                    DateTime wv_date = WebViewDate(dates[i]);

                    TimeSpan ts     = sql_date - wv_date;
                    int      result = ts.Hours * 60 * 60 + ts.Minutes * 60 + ts.Seconds;

                    if (result >= -10 && result <= 10)
                    {
                        if (urls[i].Length > 4 && urls[i].Substring(0, 4) == "http")
                        {
                            webviewUrl.Add(urls[i]);
                        }
                    }
                }

                WebForm wf = new WebForm(htmlurl, webviewUrl);
                wf.Show();
            }
            else
            {
                MessageBox.Show("웹페이지 튜플이 아닙니다.", "", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }