Code:
private void CheckBoxBMK_CheckedChanged(object sender, EventArgs e)
{
if (CheckBoxBMK.Checked)
{
Eingabe_Einbauort form2 = new Eingabe_Einbauort();
if (form2 = ButtonOk_Click)
{
CheckBoxBMK.Checked = true;
}
else
{
CheckBoxBMK.Checked = false;
} }
}
private void CheckBoxOP_CheckedChanged(object sender, EventArgs e)
{
}
}
public partial class Eingabe_Einbauort : System.Windows.Forms.Form
{
public Button ButtonOk_ee;
private Button ButtonCancel_ee;
private TextBox textBox1_ee;
private Label label1_ee;
private RichTextBox richTextBox1_ee;
private Label LabelProject_ee;
public void ButtonOk_Click(object sender, EventArgs e)
{
string s_txt_Einbauort = Convert.ToString(textBox1_ee.Text);
Eplan.EplApi.Base.Settings oSettings = new Eplan.EplApi.Base.Settings();
oSettings.SetStringSetting("USER.Labelling.Config.PXC_BMK_Script.Data.SortFilter.FilterSchemeData",
"0|1|0|1220;0|0|" + s_txt_Einbauort + "|0|1|1|0|0|0;0|", 0);
oSettings.SetStringSetting("USER.Labelling.Config.PXC_Klemmen_Script.Data.SortFilter.FilterSchemeData",
"0|1|0|1220;0|0|" + s_txt_Einbauort + "|0|1|1|0|0|0;0|", 0);
MessageBox.Show("Einbauort erfolgreich übernommen.", "Hinweis", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.Close();
}
public void ButtonCancel_Click(object sender, EventArgs e)
{
this.Close();
}