Example #1
0
        /// <summary>
        /// This should be called when mouse double click on item from Remote Listbox happened.
        /// </summary>
        /// <param name="sender">Standart sender of event.</param>
        /// <param name="e">Standart EventArgs of event.</param>
        private void checkedListBoxRemoteChanges_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            Change c = (Change)checkedListBoxRemoteChanges.SelectedItem;

            if (c.Type == Change.ChangeType.Del)
            {
                MessageBox.Show("Událost je smazána!");
            }
            else
            {
                using (TimeEventForm teForm = new TimeEventForm(c.TimeEvent))
                {
                    teForm.ShowDialog();
                }
            }
        }
Example #2
0
 /// <summary>
 /// This should be called when User clicked on BallonTip.
 /// </summary>
 /// <param name="sender">Standart sender of event.</param>
 /// <param name="e">Standart EventArgs of event.</param>
 private void notifyIcon_BalloonTipClicked(object sender, EventArgs e)
 {
     using (TimeEventForm teForm = new TimeEventForm(lastShownEvent))
     {
         teForm.ShowDialog();
     }
 }
Example #3
0
 /// <summary>
 /// This should be called when mouse double click on item from Remote Listbox happened.
 /// </summary>
 /// <param name="sender">Standart sender of event.</param>
 /// <param name="e">Standart EventArgs of event.</param>
 private void checkedListBoxRemoteChanges_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     Change c = (Change)checkedListBoxRemoteChanges.SelectedItem;
     if (c.Type == Change.ChangeType.Del)
         MessageBox.Show("Událost je smazána!");
     else
         using (TimeEventForm teForm = new TimeEventForm(c.TimeEvent))
         {
             teForm.ShowDialog();
         }
 }