Exemplo n.º 1
0
        private void readToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var form = new ShowText();

            form.action   = 1;
            form.FileName = FileListView.FocusedItem.SubItems[1].Text;
            form.Text     = FileListView.FocusedItem.SubItems[0].Text;
            form.ShowDialog(this);
        }
Exemplo n.º 2
0
 private void SearchButton_Click(object sender, EventArgs e)
 {
     if (searchBox.Text.Length > 0)
     {
         var form = new ShowText();
         form.action   = 2;
         form.Text     = "File: " + searchBox.Text + " search result:";
         form.FileName = searchBox.Text;
         form.ShowDialog(this);
     }
 }