Пример #1
0
        public ChannelInfoWindow()
        {
            InitializeComponent();

            InitializeCapacityField();

            _exceptionCatcher = new ExceptionCatcher();
        }
Пример #2
0
        public ChannelRemoveWindow(ChannelRemoveEventHandler channelRemoveEventHandler)
        {
            InitializeComponent();

            ChannelRemove += channelRemoveEventHandler;

            _exceptionCatcher = new ExceptionCatcher();
        }
Пример #3
0
        public NodeRemoveWindow(NodeRemoveEventHandler nodeRemoveEventHandler)
        {
            InitializeComponent();

            NodeRemove += nodeRemoveEventHandler;

            _exceptionCatcher = new ExceptionCatcher();
        }
Пример #4
0
        public MessageAddWindow(MessageCreateHandler messageCreateHandler)
        {
            InitializeComponent();

            MessageCreateEvent += messageCreateHandler;

            _exceptionCatcher = new ExceptionCatcher();
        }
Пример #5
0
        public ChannelAddWindow(ChannelAddEventHandler channelAddEventHandler)
        {
            InitializeComponent();

            ChannelAdd += channelAddEventHandler;

            InitializeCapacityField();

            _exceptionCatcher = new ExceptionCatcher();
        }
Пример #6
0
        public SimulationOptionsDialog(SimulationStarter simulationStarter)
        {
            InitializeComponent();

            SimulationStart += simulationStarter;

            MessageGenerateChance.Text  = AllConstants.MessageGenerateChance.ToString("N");
            TableUpdatePeriod.Text      = AllConstants.UpdateTablePeriod.ToString();
            GeneratedMessagesSizes.Text = AllConstants.DefaultMessageSize.ToString();

            _exceptionCatcher = new ExceptionCatcher();
        }
Пример #7
0
        public NetworkCreatorDialog(NetworkUpdateHandler networkUpdateHandler)
        {
            InitializeComponent();

            NetworkUpdateEvent += networkUpdateHandler;

            MetropolitanNodesNumber.Text   = AllConstants.NodeCountInMetropolitanNetwork.ToString();
            MetropolitanNetworksCount.Text = AllConstants.MetropolitanNetworksCount.ToString();
            NetworkPower.Text = AllConstants.NetworkPower.ToString("N");

            _exceptionCatcher = new ExceptionCatcher();
        }
Пример #8
0
 public void Setup()
 {
     _exceptionCatcher = new ExceptionCatcher();
 }