private void addEntryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var frm = new FrmStartupAdd())
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             _startupManagerHandler.AddStartupItem(frm.StartupItem);
             _startupManagerHandler.RefreshStartupItems();
         }
     }
 }
        private void addToStartupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (ListViewItem files in lstDirectory.SelectedItems)
            {
                FileType type = (FileType)files.Tag;

                if (type == FileType.File)
                {
                    string path = GetAbsolutePath(files.SubItems[0].Text);

                    using (var frm = new FrmStartupAdd(path))
                    {
                        if (frm.ShowDialog() == DialogResult.OK)
                        {
                            _fileManagerHandler.AddToStartup(frm.StartupItem);
                        }
                    }
                }
            }
        }