Ejemplo n.º 1
0
        private void addApplicationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult res = openFileDialog1.ShowDialog();

            if (res == DialogResult.OK)
            {
                string      fileName          = openFileDialog1.FileName;
                AliasPrompt aliasPromptDialog = new AliasPrompt(fileName);
                aliasPromptDialog.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        private void pnlOutput_DragDrop(object sender, DragEventArgs e)
        {
            // For now, only grab the first filename.  Basically I only want
            // to support adding one program/file at a time.
            string[] files    = (string[])e.Data.GetData(DataFormats.FileDrop);
            string   fileName = files[0];

            AliasPrompt aliasPromptDialog = new AliasPrompt(fileName);

            aliasPromptDialog.ShowDialog();
        }