private void frmPerson_Load(object sender, EventArgs e) { try { DataOperation.SetFont(lblActorName, enFontNames.Copperplate_Gothic_Bold.ToString().Replace("_", " "), 24, FontStyle.Bold); } catch (Exception ex) { MessageBox.Show(ex.Message, Messages.MessageBoxTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void frmSplash_Load(object sender, EventArgs e) { try { DataOperation.SetFont(lblTitle, enFontNames.Adorable.ToString().Replace("_", " "), 72, FontStyle.Regular); lblVersion.Text = Application.ProductVersion; } catch (Exception ex) { throw ex; } }
private void frmAbout_Load(object sender, EventArgs e) { try { DataOperation.SetFont(lblName, enFontNames.Adorable.ToString().Replace("_", " "), 26, FontStyle.Regular); lblName.Text = Application.ProductName + " " + Application.ProductVersion; } catch (Exception ex) { MessageBox.Show(ex.Message, Messages.MessageBoxTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void ucPersonList_Load(object sender, EventArgs e) { try { DataOperation.SetFont(lblName, enFontNames.Copperplate_Gothic_Bold.ToString().Replace("_", " "), 12, FontStyle.Regular); Initialize(); } catch (Exception ex) { MessageBox.Show(ex.Message, Messages.MessageBoxTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); } }