示例#1
0
 public static void StartService(bool forceRestart = false)
 {
     if (Instance == null || forceRestart)
     {
         Instance = new QLSV();
     }
 }
示例#2
0
        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();
        }