Example #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                node.startService();
                this.startButton.IsEnabled = false;
            }

            catch
            {
            }
        }
Example #2
0
        public MainWindow()
        {
            InitializeComponent();
            string conf = NetworkNode.App.partialPathToConfig;
            node = new Node(this.log, this.links, this);
            setGraphics();

            if (conf != null)
            {
                pathToConfig = @"" + conf;
                node.readConfig(pathToConfig);
                node.startService();
                this.startButton.IsEnabled = false;
            }
        }
Example #3
0
        public MainWindow()
        {
            InitializeComponent();
            string conf = NetworkNode.App.partialPathToConfig;

            node = new Node(this.log, this.links, this);
            setGraphics();

            if (conf != null)
            {
                pathToConfig = @"" + conf;
                node.readConfig(pathToConfig);
                node.startService();
                this.startButton.IsEnabled = false;
            }
        }