Exemple #1
0
        private void 新建包ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ProjectInfo projectInfo = treeView.SelectedNode.Tag as ProjectInfo;
            FormPackage formPackage = new FormPackage(projectInfo);

            if (DialogResult.OK == formPackage.ShowDialog())
            {
                IniPackage(treeView.SelectedNode);
            }
        }
Exemple #2
0
        private void 编辑包ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PackageInfo  packageInfo  = treeView.SelectedNode.Tag as PackageInfo;
            FormPackage  formPackage  = new FormPackage(packageInfo);
            DialogResult dialogResult = formPackage.ShowDialog();

            if (dialogResult == DialogResult.OK)
            {
                IniPackage(treeView.SelectedNode);
            }
        }
Exemple #3
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count > 0)
     {
         PackageInfo  packageInfo  = listView1.SelectedItems[0].Tag as PackageInfo;
         FormPackage  formPackage  = new FormPackage(packageInfo);
         DialogResult dialogResult = formPackage.ShowDialog();
         if (dialogResult == DialogResult.OK)
         {
             IniPackage(FindNodeByName(packageInfo.Id, treeView.Nodes));
         }
     }
 }