-
Notifications
You must be signed in to change notification settings - Fork 0
/
EthernetAdapterSelectionFrm.cpp
39 lines (30 loc) · 1.23 KB
/
EthernetAdapterSelectionFrm.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "EthernetAdapterSelectionFrm.h"
#include "PPMMeterFrm.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "cspin"
#pragma resource "*.dfm"
TEthernetAdapterSelectionForm *EthernetAdapterSelectionForm;
//---------------------------------------------------------------------------
__fastcall TEthernetAdapterSelectionForm::TEthernetAdapterSelectionForm(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TEthernetAdapterSelectionForm::TCPIPRadioButtonClick(
TObject *Sender)
{
TCPIPGroupBox->Enabled = TCPIPRadioButton->Checked;
EthernetGroupBox->Enabled = !TCPIPRadioButton->Checked;
}
//---------------------------------------------------------------------------
void __fastcall TEthernetAdapterSelectionForm::EthernetRadioButtonClick(
TObject *Sender)
{
EthernetGroupBox->Enabled = EthernetRadioButton->Checked;
TCPIPGroupBox->Enabled = !EthernetRadioButton->Checked;
}
//---------------------------------------------------------------------------