Exemple #1
0
 public DocumentPreview()
 {
     InitializeComponent();
     SchedulerDataHelper.DataBind(storage);
     SubscribePrintAdapterEvents();
     storage.ResourceStorage.Mappings.Image = "";
     this.DataContext = this;
     UpdateInterval();
     UpdatePreview();
 }
        protected void InitializeScheduler(bool bindToDatabase)
        {
            SchedulerControl scheduler = FindScheduler();

            if (scheduler == null)
            {
                return;
            }
            if (bindToDatabase)
            {
                SchedulerDataHelper.DataBindToDatabase(scheduler);
            }
            else
            {
                SchedulerDataHelper.DataBind(scheduler);
            }
            InitializeSchedulerProperties(scheduler);
        }