Ejemplo n.º 1
0
		private void Startup()
		{
			try
			{
				if (SessionHelper.AppConfiguration.GetCurrentAppconfiguration().isMonoposto())
				{
					txtUser.Enabled = false;
					txtPassword.Enabled = false;
	#if TESTING
					txtUser.Enabled = true;
	#endif
				}
				else // cliente-servidor
				{
					txtUser.Enabled = true;
					txtPassword.Enabled = true;
				}

				txtUser.TextChanged += txt_TextChanged;
				txtPassword.TextChanged += txt_TextChanged;
				txt_TextChanged(txtUser, new EventArgs());

				FormGISAAbout.PopulateInformacoes(this.lblVersion);
			}
			catch (Exception ex)
			{
				Trace.WriteLine(ex);
				MessageBox.Show("Não existe ou foi perdida a conetividade com o servidor " + Environment.NewLine + "configurado, a aplicação não poderá por isso ser utilizada.", "Servidor indisponível", MessageBoxButtons.OK, MessageBoxIcon.Warning);
				Environment.Exit(0);
			}
		}
Ejemplo n.º 2
0
		public FormGISAAbout() : base()
		{

			//This call is required by the Windows Form Designer.
			InitializeComponent();

			//Add any initialization after the InitializeComponent() call
			LoadListViewAssemblies();
			FormGISAAbout.PopulateInformacoes(this.lblVersion);
		}
Ejemplo n.º 3
0
		private void StatusBar_DoubleClick(object sender, System.EventArgs e)
		{
			if (panelClicked == StatusBarPanelHelp)
			{
				FormGISAAbout tempWith1 = new FormGISAAbout();
				tempWith1.ShowDialog(this);
			}
		}
Ejemplo n.º 4
0
		private void MenuItemAbout_Click(object sender, System.EventArgs e)
		{
			FormGISAAbout tempWith1 = new FormGISAAbout();
			tempWith1.ShowDialog(this);
		}
Ejemplo n.º 5
0
		private void mnuAjudaAcercaDe_Click(object sender, System.EventArgs e)
		{
			FormGISAAbout tempWith1 = new FormGISAAbout();
			tempWith1.ShowDialog(this);
		}