예제 #1
0
        public NodeAdmin(Node node, string userIP, bool initialAdmin, Dictionary<int, string> runningRegNodes)
        {
            this.node = node;
            this.StopReceive = false;
            this.initialAdmin = initialAdmin;
            this.runningRegNodes = runningRegNodes;
            this.dataStore = new DataStore();

            dataStore.addNewNode(node.Id);

            start(userIP);
        }
예제 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Node node = new Node();

            try
            {
                Application.Run(new NodeForm(node));
            }
            catch (Exception ex)
            {
                //string str = "sdg";
                MessageBox.Show("sdg: " + ex);
            }
        }