예제 #1
0
 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);
     }
 }
예제 #2
0
 private void UpdateReminders()
 {
     if (FM.AtMng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.EnableReminders, true))
     {
         if (isOfficerCal)
         {
             fCalendar fcal = (fCalendar)this.ParentForm;
             fcal.EnableReminders();
         }
     }
 }
예제 #3
0
        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;
        }
예제 #4
0
 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);
     }
 }