public BrowseDialog(TIAAsyncWrapper thread, TiaPortal portal) { InitializeComponent(); AutoExpandMaxChildren = -1; builder = new TIATree.TreeNodeBuilder(thread, portal); builder.BuildDone += TreeDone; VisibleChanged += UpdateList; FormClosing += FormClosingEventHandler; blockTree.MouseDoubleClick += TreeDoubleClick; }
public MainForm() { InitializeComponent(); disconnectToolStripMenuItem.Enabled = false; btn_disconnect.Enabled = false; FormClosing += FormClosingEventHandler; // Project tree AutoExpandMaxChildren = -1; tiaThread = new TIAAsyncWrapper(); }
public void CancelBuild() { TIAAsyncWrapper t = thread; if (t != null) { t.cancel(); lock (TIA) { // Do nothing just wait for the worker to finish } } }
public TreeNodeBuilder(TIAAsyncWrapper tiaThread, TiaPortal tia) { TIA = tia; thread = tiaThread; }
public PortalSelect(TIAAsyncWrapper thread) { tiaThread = thread; InitializeComponent(); listBox1.MouseDoubleClick += listDoubleClick; }