~cszikszoy/do-plugins/pastebin

« back to all changes in this revision

Viewing changes to GCalendar/src/GCalendarNewEvent.cs

  • Committer: Alex Launi
  • Date: 2008-06-06 21:36:06 UTC
  • Revision ID: alex@eriktorvaldsonn-20080606213606-qsw4ihlhrpu17oz3
GCal Cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
{
33
33
        public sealed class GCalendarNewEvent : IAction
34
34
        {
35
 
                public GCalendarNewEvent()
36
 
                {
37
 
                }
38
 
                
39
35
                public string Name {
40
36
                        get { return "New Event"; }
41
37
                }
68
64
            get {return false; }
69
65
        }
70
66
        
71
 
        public bool SupportsItem (IItem item) {
72
 
            return true;
73
 
        }
74
 
        
75
 
        public bool SupportsModifierItemForItems (IItem[] item, IItem modItem) {
76
 
            return true;
77
 
        }
78
 
        
79
 
        public IItem[] DynamicModifierItemsForItem (IItem item) {
 
67
        public bool SupportsItem (IItem item) 
 
68
        {
 
69
            return true;
 
70
        }
 
71
        
 
72
        public bool SupportsModifierItemForItems (IItem[] item, IItem modItem) 
 
73
        {
 
74
            return true;
 
75
        }
 
76
        
 
77
        public IItem[] DynamicModifierItemsForItem (IItem item) 
 
78
        {
80
79
            return null;
81
80
        }
82
81
        
83
 
        public IItem[] Perform (IItem[] items, IItem[] modifierItems) {
84
 
            //DoGCal service = new DoGCal ();
 
82
        public IItem[] Perform (IItem[] items, IItem[] modifierItems) 
 
83
        {
85
84
            string cal_url = (modifierItems[0] as GCalendarItem).URL;
86
85
            string event_data = (items[0] as ITextItem).Text;
87
86