public static void StartService(bool forceRestart = false) { if (Instance == null || forceRestart) { Instance = new QLSV(); } }
public Form1() { InitializeComponent(); QLSV.StartService(); cbxPhone.DataSource = model.AreaCode; cbxPhone.SelectedIndex = 0; ToggleInfo(); btnSave.Enabled = false; dataGridView1.MultiSelect = false; timepick.MaxDate = DateTime.Now.AddYears(-17); timepick.MinDate = DateTime.Now.AddYears(-35); LoadInfo(); }