Hello!
Maybe it´s simple but I have not much experience with c# work with in methodes and classes. I want when I start program with command "interpol"
1) start and show windows form
2) button1_Click hide windows form and select a block
3) after selecting windows form shows again and update the text from label1
If I think wrong, corretects that
1) create a formObjekt names frm
2) if click button run : frm.Hide()
: getblock
3) : frm.Show()
namespace Kotierung
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
[CommandMethod("interpol", "_interpol", CommandFlags.Modal)]
public void frmStart()
{
Document doc = AcAp.DocumentManager.MdiActiveDocument;
Form1 frm = new Form1();
frm.Show();
//AcAp.ShowModelessDialog(AcAp.MainWindow.Handle, frm);
}
private void button1_Click(object sender, EventArgs e)
{
frm.Hide();
GetBlockEntity.GetBlock(label1);
frm.Show();
}
private void button2_Click(object sender, EventArgs e)
{
frm.Hide();
GetBlockEntity.GetBlock(label2);
frm.Show();
}
}
}