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; }
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); } }
bool LoadRegisterForm() { using (frmRegisterHealth frm = new frmRegisterHealth(storage)) { frm.ShowDialog(); return(frm.RegisterOk); } }