示例#1
0
        public MainWindow()
        {
            InitializeComponent();
            // sensing feild
            Swith  = Canvas_SensingFeild.Width - 218;
            Sheigh = Canvas_SensingFeild.Height - 218;
            PublicParameters.SensingFeildArea = SensingFeildArea;
            PublicParameters.MainWindow       = this;
            // battery levels colors:
            FillColors();

            PublicParameters.RandomColors = RandomColorsGenerator.RandomColor(100); // 100 diffrent colores.

            /*
             * List<UplinkFlowEnery> list = DistrubtionsTests.TestHvalue(5, 1);
             * ListControl HList = new ui.conts.ListControl();
             * HList.dg_date.ItemsSource = list;
             * UiShowLists win = new UiShowLists();
             * win.stack_items.Children.Add(HList);
             * win.Show();
             * win.WindowState = WindowState.Maximized;*/


            _show_id.IsChecked                 = Settings.Default.ShowID;
            _show_battrey.IsChecked            = Settings.Default.ShowBattry;
            _show_sen_range.IsChecked          = Settings.Default.ShowSensingRange;
            _show_com_range.IsChecked          = Settings.Default.ShowComunicationRange;
            _Show_Routing_Paths.IsChecked      = Settings.Default.ShowRoutingPaths;
            _Show_Packets_animations.IsChecked = Settings.Default.ShowAnimation;
        }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();
            // sensing feild
            Swith  = Canvas_SensingFeild.Width - 218;
            Sheigh = Canvas_SensingFeild.Height - 218;
            PublicParamerters.SensingFeildArea = SensingFeildArea;
            PublicParamerters.MainWindow       = this;
            // battery levels colors:
            FillColors();

            PublicParamerters.RandomColors = RandomColorsGenerator.RandomColor(100); // 100 diffrent colores.


            _show_id.IsChecked                 = Settings.Default.ShowID;
            _show_battrey.IsChecked            = Settings.Default.ShowBattry;
            _show_sen_range.IsChecked          = Settings.Default.ShowSensingRange;
            _show_com_range.IsChecked          = Settings.Default.ShowComunicationRange;
            _Show_Routing_Paths.IsChecked      = Settings.Default.ShowRoutingPaths;
            _Show_Packets_animations.IsChecked = Settings.Default.ShowAnimation;
        }