예제 #1
0
 private void menuOpen_Click(object sender, EventArgs e)
 {
     OpenFileDialog dlg = new OpenFileDialog();
     dlg.Filter = "iOS安装包|*.ipa;*.zip|所有文件|*.*";
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         _fileName = dlg.FileName;
         PListSchemeViewer viewer = new PListSchemeViewer(unzip_path);
         viewer.getURLScheme(_fileName, (List<DataGridCell> list) =>
         {
             if (list == null || list.Count == 0)
             {
                 MessageBox.Show("文件中没有url Scheme。");
             }
             else
             {
                 addRows(list);
             }
         });
     }
 }
예제 #2
0
 private void menuOpenPlist_Click(object sender, EventArgs e)
 {
     OpenFileDialog dlg = new OpenFileDialog();
     dlg.Filter = "Info文件|*.plist|所有文件|*.*";
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         _fileName = dlg.FileName;
         PListSchemeViewer viewer = new PListSchemeViewer(unzip_path);
         List<DataGridCell> list = viewer.readPlist(_fileName);
         if (list == null || list.Count == 0)
         {
             MessageBox.Show("文件中没有url Scheme。");
         }
         else
         {
             addRows(list);
         }
     }
 }