Page Index Toggle Pages: 1 2 3 [4] 5 6 7 Send TopicPrint
Very Hot Topic (More than 25 Replies) PocketPlannerDesign for .NET 2.0 (Read 56938 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #45 - Apr 10th, 2006 at 5:49am
Print Post  
yep, handle the DateClick event and check the Clicks argument. If Clicks = 2, then change the CurrentView and set the TimetableSettings.Dates so it displays the date clicked in the weekrange view.

I will check with our developers about the scrollbar and let you know later.
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #46 - Apr 10th, 2006 at 6:55am
Print Post  
must you set that click event in the
Private Sub _menuWeekRange_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuWeekRange.Click
   _calendar.CurrentView = CalendarView.WeekRange
         End Sub

or is that an seperate method
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #47 - Apr 10th, 2006 at 9:12am
Print Post  
There is a DateClick event that will let you know exactly which date is clicked in the week range.
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #48 - Apr 10th, 2006 at 9:43am
Print Post  
you know i have a demo with 3 calendars but when i want to save and load them he gives nothing back on the timetable

Private Sub _menuSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuSave.Click

       _calendar.Schedule.Save("schedule.save")
       Calendar1.Schedule.Save("schedule.save")
      Calendar2.Schedule.Save("schedule.save")

    End Sub

    Private Sub _menuLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuLoad.Click

       _calendar.Schedule.Load("schedule.save")
       _calendar.Invalidate()
        Calendar1.Schedule.Load("schedule.save")
        Calendar1.Invalidate()
        Calendar2.Schedule.Load("schedule.save")
        Calendar2.Invalidate()
    End Sub

i changed like you see but when i save it he gives nothing back
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #49 - Apr 10th, 2006 at 10:33am
Print Post  
Do you save all three schedules into the same file ? The last schedule will overwrite the information for first two, it won't just append its items to the file.
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #50 - Apr 10th, 2006 at 11:04am
Print Post  
i have a question can you fill the timetable from an sql mobile 2005 database or is it only in xml file
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #51 - Apr 10th, 2006 at 12:28pm
Print Post  
You will have to implement that yourself, i.e. iterate dataset records, read item values, create Appointment objects and assign the values to their properties.
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #52 - Apr 10th, 2006 at 3:29pm
Print Post  
oh so you have never tried it before
i must read it out from a sql mobile database into the timetable and also save the new appointments
haven't you any example of that or some more specifik information because i have never done that before  Embarrassed
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #53 - Apr 10th, 2006 at 4:28pm
Print Post  
I'm afraid we haven't used mobile SQL server and don't have any example. Do you have any specific difficulty serializing the appointments into the SQL server ?
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #54 - Apr 11th, 2006 at 4:39am
Print Post  
wel for the loading and saving of the appointments i don't know how to start
maybe i must start with creating an appointment object and assign the values to their properties.
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #55 - Apr 11th, 2006 at 5:33am
Print Post  
i have a question about saving the appointments
in the demo stands
_calendar.Schedule.Save("schedule.save")

but i have seen that when i save today an appointment i didn't see it in that schedule.save

the last save was from the 4 of april
were are the appointments then saved
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #56 - Apr 11th, 2006 at 6:20am
Print Post  
Regarding scrollbars in WeekRangeView - they are displayed only when needed, i.e. not all contained days are visible at a time. To show a vertical scrollbar, you either select wider range of dates by using Calendar.Date and Calendar.EndDate, or you choose less days to be visible at a time, by reducing the number of visible rows in the view (Calendar.WeekRange.VisibleRows).

As for saving and loading appointments you can either save the entire schedule to a string by calling Schedule.SaveToString, then writing this string to the SQL database, or save appointments individually, which would require some efforts.
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #57 - Apr 11th, 2006 at 7:00am
Print Post  
i have tested the demo.exe and when i saved there appointments i see that the schedule.save increase

but when i save an appointment from the demo that you gave me with the 3 kalenders he saved it because i can load them after but the schedule.save doesn't increase

is there an extra method in the demo.exe to save that in schedule.save (because in the demo with the 3 kalenders there is just one coderule and thats it ???
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #58 - Apr 11th, 2006 at 10:05am
Print Post  
I am not sure I understand that last post - do you need to save all three schedules in the same file ?
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #59 - Apr 11th, 2006 at 10:50am
Print Post  
no i want to save it seperate but i think that there is missing a method to save the timetabel in the schedule.save file because when i press on the save button nothing happend and when i do the same in the demo.exe example i can see direct that the appointment is saved in the schedule.save file
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 3 [4] 5 6 7
Send TopicPrint