public void launchLoginFormTimerTick(object sender, EventArgs e) { launchingLoginFormTimer.Dispose(); launchingLoginFormTimer.Enabled = false; Forms.SysLoginForm sysLoginForm = new Forms.SysLoginForm(); sysLoginForm.Show(); Hide(); }
private void btnLogout_Click(object sender, EventArgs e) { if (isSalesIntegrationStarted) { MessageBox.Show("Please stop the sales integration first.", "EasyFIS Integration", MessageBoxButtons.OK, MessageBoxIcon.Error); } else if (isManualSalesIntegrationStarted) { MessageBox.Show("Please stop the manual sales integration first.", "EasyFIS Integration", MessageBoxButtons.OK, MessageBoxIcon.Error); } else if (isFolderMonitoringIntegrationStarted) { MessageBox.Show("Please stop the folder monitoring integration first.", "EasyFIS Integration", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { Hide(); SysLoginForm sysLoginForm = new SysLoginForm(); sysLoginForm.Show(); } }