Esempio n. 1
0
        private async void SetContactInfo()
        {
            InterfaceToDataBaseOtherMethods Method = new InterfaceToDataBaseOtherMethods();

            contactLabel.Text = await Method.GetContactInfo();

            if (contactLabel.Text == null)
            {
                contactLabel.Text = Properties.Resources.DefaultContactInfo;
            }
            contactLabel.Text += "\n\n" + Properties.Resources.SOSMContactInfo;
        }
Esempio n. 2
0
        private async void SetWelcomeMessage()
        {
            InterfaceToDataBaseOtherMethods Method = new InterfaceToDataBaseOtherMethods();

            welcomeMessageLabel.Text = await Method.GetWelcomeMessage();

            if (welcomeMessageLabel.Text == null)
            {
                welcomeMessageLabel.Text = Properties.Resources.DefaultWelcomeMessage;
            }
            if (welcomeMessageLabel.Text == "")
            {
                welcomeMessagePanel.Visible = false;
            }
        }