开发者

Setup project custom action reading checkboxes

开发者 https://www.devze.com 2023-01-19 07:01 出处:网络
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 checkbo

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

精彩评论

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