コード例 #1
0
        private void TS_TextBox_Enter(object sender, EventArgs e)
        {
            G_I_TextBox_Property.Clear();
            G_I_TextBox_Property.AppendText("История поиска\n\n");
            int i = 1;

            foreach (var item in HistorySearches)
            {
                G_I_TextBox_Property.AppendText(i.ToString() + ".)  " + item.Name + "\n");
                i++;
            }
        }
コード例 #2
0
        private void G_I_listView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (G_I_listView.SelectedItems.Count > 0)
            {
                string   buf = G_I_TreeView.SelectedNode.FullPath + "\\" + G_I_listView.SelectedItems[0].Text;
                FileInfo fi  = new FileInfo(buf);
                G_I_TextBox_Property.Text = "";
                G_I_TextBox_Property.AppendText("Имя файла: " + fi.Name);
                G_I_TextBox_Property.AppendText("Полный путь к файлу: " + fi.DirectoryName);
                G_I_TextBox_Property.AppendText("Расширение файла: " + fi.Extension);
                G_I_TextBox_Property.AppendText("Время создание файла: " + fi.CreationTime);
                G_I_TextBox_Property.AppendText("Размер файла в байтах: " + fi.Length);

                ShowProperty();
            }
        }