Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();
            disconnectToolStripMenuItem.Enabled = false;
            btn_disconnect.Enabled = false;

            FormClosing += FormClosingEventHandler;

            // Project tree
            AutoExpandMaxChildren = -1;

            tiaThread = new TIAAsyncWrapper();
        }
Ejemplo n.º 3
0
            public void CancelBuild()
            {
                TIAAsyncWrapper t = thread;

                if (t != null)
                {
                    t.cancel();
                    lock (TIA)
                    {
                        // Do nothing just wait for the worker to finish
                    }
                }
            }
Ejemplo n.º 4
0
 public TreeNodeBuilder(TIAAsyncWrapper tiaThread, TiaPortal tia)
 {
     TIA    = tia;
     thread = tiaThread;
 }
Ejemplo n.º 5
0
 public PortalSelect(TIAAsyncWrapper thread)
 {
     tiaThread = thread;
     InitializeComponent();
     listBox1.MouseDoubleClick += listDoubleClick;
 }