public void testConstructor()
        {
            EventHandler<IgraphGenerateEvent> handler = new System.EventHandler<IgraphGenerateEvent>(this.gen_graph_call_back);
            EventHandler<statusEventHandler> handler2 = new System.EventHandler<statusEventHandler>(this.get_network_call_back);
            DB_Manager db = new DB_Manager("networkvis");
            NetworkID UI_1 = new NetworkID(db, handler);
            GenerateGraph UI_2 = new GenerateGraph(db, handler);
            AskNetWorkID UI_3 = new AskNetWorkID(handler2);

            Assert.AreEqual(true, UI_1 != null);
            Assert.AreEqual(true, UI_2 != null);
            Assert.AreEqual(true, UI_3 != null);
        }
예제 #2
0
 private void ask_for_network()
 {
     EventHandler<statusEventHandler> handler = new System.EventHandler<statusEventHandler>(this.select_network);
     AskNetWorkID ask = new AskNetWorkID(handler);
     ask.ShowDialog(this);
 }