Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog1 = new OpenFileDialog();

            openFileDialog1.InitialDirectory = @"C:\";
            openFileDialog1.Title            = "Buscar App que quieres instalar";

            openFileDialog1.CheckFileExists = true;
            openFileDialog1.CheckPathExists = true;

            openFileDialog1.DefaultExt       = "txt";
            openFileDialog1.Filter           = "Archivo ipa (*.ipa)|*.ipa|Todos los archivos (*.*)|*.*";
            openFileDialog1.FilterIndex      = 2;
            openFileDialog1.RestoreDirectory = true;

            openFileDialog1.ReadOnlyChecked = true;
            openFileDialog1.ShowReadOnly    = true;

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                aifon.InstallApplication(openFileDialog1.FileName);
            }
        }