Ejemplo n.º 1
0
        private void Load_Conf_Click(object sender, EventArgs e)
        {
            Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
            dlg.DefaultExt = ".xml";
            dlg.Filter     = "Text documents (.xml)|*.xml";
            Nullable <bool> result = dlg.ShowDialog();

            if (result == true)
            {
                pathToConfig = dlg.FileName;
                cloud.readConfig(pathToConfig);
            }
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            setGraphics();
            cloud = new NetworkCloud(this.links, this.nodes, this.logList);
            var path = @"Config/NetworkTopology.xml";

            string conf = Cloud.App.partialPathToConfig;

            if (conf != null)
            {
                pathToConfig = @"" + conf;
                cloud.readConfig(pathToConfig);
                startService();
            }
        }
Ejemplo n.º 3
0
        public MainWindow()
        {
            InitializeComponent();
            setGraphics();
            cloud = new NetworkCloud(this.links, this.nodes, this.logList);
            var path = @"Config/NetworkTopology.xml";


            string conf = Cloud.App.partialPathToConfig;

            if (conf != null)
            {
                pathToConfig = @"" + conf;
                cloud.readConfig(pathToConfig);
                startService();
            }
        }