Esempio n. 1
0
        public frmMain()
        {
            InitializeComponent();
            try
            {
                this.Text = string.Concat(this.Text, " version ", Assembly.GetExecutingAssembly().GetName().Version.ToString());


                this.Text = this.Text + " SourceInfo = " + Fwk.Bases.WrapperFactory.GetWrapper("").SourceInfo;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            Boolean registerOk = false;

            try
            {
                lic.chk();
                registerOk = true;
            }
            catch (Exception ex)
            {
                using (frmRegisterHealth frm = new frmRegisterHealth())
                {
                    frm.Text = ex.Message;
                    frm.ShowDialog();
                    registerOk = frm.RegisterOk;
                }
            }

            navBarControl1.Enabled = registerOk;
        }
Esempio n. 2
0
 private void frmMain_Load(object sender, EventArgs e)
 {
     try
     {
         Boolean registerOk = false;
         try
         {
             lic.chk();
             registerOk = true;
         }
         catch (Exception ex)
         {
             using (frmRegisterHealth frm = new frmRegisterHealth())
             {
                 frm.Text = ex.Message;
                 frm.ShowDialog();
                 registerOk = frm.RegisterOk;
             }
         }
         if (String.IsNullOrEmpty(AppSettings.store.StorageObject.NewsWebSitePath))
         {
             AddContronToPannel(uc_Settings);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 3
0
        bool LoadRegisterForm()
        {
            using (frmRegisterHealth frm = new frmRegisterHealth(storage))
            {
                frm.ShowDialog();

                return(frm.RegisterOk);
            }
        }