Ejemplo n.º 1
0
        private void Reinitiate()
        {
            if (InvokeRequired)
            {
                Invoke(_reinitiate); return;
            }

            if (ISSchedulerLstvw.Items.Count > 0)
            {
                ISSchedulerLstvw.StopAllSchedules();
            }

            foreach (ExtensionBase extension in _contractor.Extensions)
            {
                _contractor.Dispose(extension);
            }

            if (_fakeClient != null)
            {
                _fakeClient.Dispose();
            }

            if (_fakeServer != null)
            {
                _fakeServer.Dispose();
            }

            Hide();
            _packetlogger.Halt();
            _packetlogger.Hide();

            Task.Factory.StartNew(Initiate);
        }
Ejemplo n.º 2
0
        private void ISCreateBtn_Click(object sender, EventArgs e)
        {
            var packet = new HMessage(ISPacketTxt.Text, (HDestination)ISDestinationTxt.SelectedIndex + 1);

            ISSchedulerLstvw.AddSchedule(packet, (int)ISBurstTxt.Value, (int)ISIntervalTxt.Value, ISDescriptionTxt.Text);
        }
Ejemplo n.º 3
0
 private void ISRemoveBtn_Click(object sender, EventArgs e)
 {
     ISSchedulerLstvw.RemoveSelectedItem();
     UpdateSchedulerUI(ISSchedulerLstvw.SelectedItems.Count > 0);
 }
Ejemplo n.º 4
0
 private void ISClearBtn_Click(object sender, EventArgs e)
 {
     ISSchedulerLstvw.ClearItems();
 }
Ejemplo n.º 5
0
 private void ISStartAllBtn_Click(object sender, EventArgs e)
 {
     ISSchedulerLstvw.StartAllSchedules();
     UpdateSchedulerUI(ISSchedulerLstvw.SelectedItems.Count > 0);
 }