Example #1
0
 public void runSync()
 {
     Console.WriteLine("Run Sync.........");
     if (DepartmentSettings.is_master_till())
     {
         System.Timers.Timer aTimer = new System.Timers.Timer();
         aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
         aTimer.Interval = 300000;
         aTimer.Enabled  = true;
     }
 }
Example #2
0
 private void Connection_frame_Load(object sender, EventArgs e)
 {
     SQLConn.getData();
     DepartmentSettings.getData();
     txtServerHost.Text          = SQLConn.ServerMySQL;
     txtPort.Text                = SQLConn.PortMySQL;
     txtUserName.Text            = SQLConn.UserNameMySQL;
     txtPassword.Text            = SQLConn.PwdMySQL;
     txtDatabase.Text            = SQLConn.DBNameMySQL;
     txtDepartmentId.Text        = DepartmentSettings.DepartmentId;
     txtTillId.Text              = DepartmentSettings.TillId;
     textBoxVatChalan.Text       = DepartmentSettings.vatChalan;
     textBoxVatRegestration.Text = DepartmentSettings.vatRegstration;
     textBoxBranchName.Text      = DepartmentSettings.branchName;
     textBoxAdress.Text          = DepartmentSettings.address;
     branch_logo.Image           = new Bitmap(DepartmentSettings.logo);
     master_till.Checked         = DepartmentSettings.is_master_till();
 }