Дипломная работа: Автоматизация учета и обработки данных по использованию трафика ЛВС для АО "БИТК"

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам
119
address_int =
(long)view_local_addressesDataGridView["dataGridViewTextBoxColumn2",
RowIndex].Value;
mask =
(byte)view_local_addressesDataGridView["dataGridViewTextBoxColumn3",
RowIndex].Value;
DialogResult = System.Windows.Forms.DialogResult.OK;
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace NetFlowAnalyser
{
public partial class ProtocolForm : Form
{
public ProtocolForm()
{
InitializeComponent();
}
private void protocolBindingNavigatorSaveItem_Click(object sender,
EventArgs e)
{
120
this.Validate();
this.protocolBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.baseDataSet);
MessageBox.Show("Данные успешно сохранены");
}
private void ProtocolForm_Load(object sender, EventArgs e)
{
// TODO: данная строка кода позволяет загрузить данные в таблицу
"baseDataSet.Protocol". При необходимости она может быть перемещена или
удалена.
this.protocolTableAdapter.Fill(this.baseDataSet.Protocol);
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace NetFlowAnalyser
{
public partial class LocalNetworkForm : Form
{
public LocalNetworkForm()
121
{
InitializeComponent();
}
private void localNetworkBindingNavigatorSaveItem_Click(object sender,
EventArgs e)
{
this.Validate();
this.localNetworkBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.baseDataSet);
MessageBox.Show("Данные успешно сохранены");
}
private void LocalNetworkForm_Load(object sender, EventArgs e)
{
// TODO: данная строка кода позволяет загрузить данные в таблицу
"baseDataSet.LocalNetwork". При необходимости она может быть перемещена или
удалена.
this.localNetworkTableAdapter.Fill(this.baseDataSet.LocalNetwork);
}
private void localNetworkDataGridView_CellEndEdit(object sender,
DataGridViewCellEventArgs e)
{
if
(localNetworkDataGridView.Columns[e.ColumnIndex].DataPropertyName ==
"address")
{
string strip = localNetworkDataGridView[e.ColumnIndex,
e.RowIndex].Value as string;
122
localNetworkDataGridView["dataGridViewTextBoxColumn4",
e.RowIndex].Value = Common.StringIpToInt64(strip);
}
}
}
}
namespace NetFlowAnalyser
{
partial class TrafficSettingsForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be
disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
123
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.dateTimePickerDate = new
System.Windows.Forms.DateTimePicker();
this.textBoxIp = new System.Windows.Forms.TextBox();
this.buttonOk = new System.Windows.Forms.Button();
this.buttonCancel = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// dateTimePickerDate
//
this.dateTimePickerDate.Anchor =
((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.To
p | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dateTimePickerDate.Location = new System.Drawing.Point(12, 12);
this.dateTimePickerDate.Name = "dateTimePickerDate";
this.dateTimePickerDate.Size = new System.Drawing.Size(351, 20);
this.dateTimePickerDate.TabIndex = 0;
//
// textBoxIp
//
this.textBoxIp.Anchor =
((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.To
p | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
Источник: https://baza.diplomsite.ru/previewfile/2370