MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / aSetupExecute

Method aSetupExecute

source/main.cpp:731–768  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

729}
730//---------------------------------------------------------------------------
731void __fastcall TMainForm::aSetupExecute(TObject *Sender)
732{
733 bool se = IsShortcutExist(CSIDL_STARTUP);
734
735 SetupForm = new TSetupForm(this);
736 SetupForm->AutoStartCB->Checked = se;
737
738 if( SetupForm->ShowModal() == mrOk )
739 {
740 if( SetupForm->bUdpRestart )
741 {
742 UdpServerStop();
743 UdpServerStart();
744 }
745 if( SetupForm->bTcpRestart )
746 {
747 TcpServerStop();
748 TcpServerStart();
749 }
750 if( SetupForm->AutoStartCB->Checked != se )
751 {
752 if( se )
753 DeleteShortcut(CSIDL_STARTUP);
754 else
755 CreateShortcut(CSIDL_STARTUP);
756 }
757
758 fdb->GetList(SelectFileCB->Items, true);
759 int i = SelectFileCB->Items->IndexOfObject((TObject *)FileNumber);
760 SelectFileCB->ItemIndex = i;
761
762 LogSG->Invalidate(); // 3D
763
764 MainCfg.Save(MainCfgFile, fdb);
765 }
766 delete SetupForm;
767 SetupForm = NULL;
768}
769//---------------------------------------------------------------------------
770void __fastcall TMainForm::RedrawProto(void)
771{

Callers 1

RunSetupFunction · 0.80

Calls 9

IsShortcutExistFunction · 0.85
UdpServerStopFunction · 0.85
UdpServerStartFunction · 0.85
TcpServerStopFunction · 0.85
TcpServerStartFunction · 0.85
DeleteShortcutFunction · 0.85
CreateShortcutFunction · 0.85
GetListMethod · 0.80
SaveMethod · 0.45

Tested by

no test coverage detected