예제 #1
0
        //internal void RaiseDeleteCompletelyEvent()
        //{
        //    if (NoteDeletedCompletely != null)
        //    {
        //        NoteDeletedCompletely(this, new NoteDeletedCompletelyEventArgs(_ID, _GroupID));
        //    }
        //}

        private void group_GroupPropertyChanged(object sender, GroupPropertyChangedEventArgs e)
        {
            if (!_Visible || _Dialog == null) return;
            switch (e.Type)
            {
                case GroupChangeType.BackColor:
                    if (_Skinless == null && !PNStatic.Settings.GeneralSettings.UseSkins)
                    {
                        _Dialog.ApplyBackColor((Color)e.NewStateObject);
                    }
                    break;
                case GroupChangeType.CaptionColor:
                    if (_Skinless == null && !PNStatic.Settings.GeneralSettings.UseSkins)
                    {
                        _Dialog.ApplyCaptionFontColor((Color)e.NewStateObject);
                    }
                    break;
                case GroupChangeType.CaptionFont:
                    if (_Skinless == null && !PNStatic.Settings.GeneralSettings.UseSkins)
                    {
                        _Dialog.ApplyCaptionFont((PNFont)e.NewStateObject);
                    }
                    break;
                case GroupChangeType.Skin:
                    if (_Skin == null && PNStatic.Settings.GeneralSettings.UseSkins)
                    {
                        PNSkinsOperations.ApplyNoteSkin(_Dialog, this);
                    }
                    break;
            }
        }
예제 #2
0
 private void dlgIcons_GroupPropertyChanged(object sender, GroupPropertyChangedEventArgs e)
 {
     try
     {
         var d = sender as WndFolderIcons;
         if (d != null)
         {
             d.GroupPropertyChanged -= dlgIcons_GroupPropertyChanged;
         }
         imgGroupIcon.Source    = (BitmapImage)e.NewStateObject;
         m_Group.Image          = (BitmapImage)e.NewStateObject;
         m_Group.IsDefaultImage = false;
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
예제 #3
0
 private void dlgIcons_GroupPropertyChanged(object sender, GroupPropertyChangedEventArgs e)
 {
     try
     {
         var d = sender as WndFolderIcons;
         if (d != null) d.GroupPropertyChanged -= dlgIcons_GroupPropertyChanged;
         imgGroupIcon.Source = (BitmapImage)e.NewStateObject;
         m_Group.Image = (BitmapImage)e.NewStateObject;
         m_Group.IsDefaultImage = false;
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }