开发者

Setup project custom action reading checkboxes

I have checkboxes and a dialogue added.

I need to be able to read the state of the boxes from a custom action. I also need the path which I have but I can't find how to read the state of the checkboxes.

How can this be done?

public override void Commit(IDictionary savedState)
{
    base.Commit(savedState);
    String TargetDirectory = Path.GetDirectoryName(C开发者_开发知识库ontext.Parameters["AssemblyPath"]);
    MessageBox.Show(TargetDirectory);
    // Code needed to read the checkboxes!
}


Found it! in custom Actions add /tool="[XYZ] " /MyInfo="[ABC] "

where XYZ and ABC are the CheckboxNProperty

then read them in in the custom action above thus

MessageBox.Show(Context.Parameters["XYZ"]);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜