private void JumpToFile() { if (this.ParentForm.GetType() == typeof(fCalendar) && IsOfficerCal && CurrentRow() != null) { fCalendar fcal = (fCalendar)this.ParentForm; fFile f = fcal.MainForm.OpenFile(CurrentRow().FileId); f.MoreInfo("appointment", CurrentRow().ApptId); } }
private void UpdateReminders() { if (FM.AtMng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.EnableReminders, true)) { if (isOfficerCal) { fCalendar fcal = (fCalendar)this.ParentForm; fcal.EnableReminders(); } } }
public fNotify(fCalendar calendar, int apptId) { InitializeComponent(); FromForm = calendar; pnlLawMail.Text = String.Format(LawMate.Properties.Resources.AppMailNotice, FromForm.MainForm.AtMng.AppMan.AppName); this.Location = new Point((FromForm.MainForm.Bounds.Right - 15 - this.Width), (FromForm.MainForm.Bounds.Bottom - 15 - this.Height)); lblMailCountMessage.Text = LawMate.Properties.Resources.AppointmentSoon; linkLabel1.Text = LawMate.Properties.Resources.CalendarDisplayName; myApptId = apptId; this.Opacity = 0; this.Show(); timerFade.Enabled = true; }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { if (FromForm != null) { if (myApptId != 0) { fCalendar fc = (fCalendar)FromForm; fc.MoreInfo("Appointment", myApptId); } FromForm.ParentForm.Activate(); FromForm.Focus(); FromForm.Activate(); } this.Close(); } catch (Exception x) { UIHelper.HandleUIException(x); } }