예제 #1
0
 private void InitializeGallery()
 {
     this.galleryGridControl.DataSource = Files;
     this.galleryView.PopulateColumns();
     this.galleryView.OptionsImageLoad.AnimationType = LibraryControl.ConvertAnimationType(SettingsStore.Default.ImageAnimationType);
     this.galleryGridControl.Resize     -= galleryControl1_Resize;
     this.galleryGridControl.Resize     += galleryControl1_Resize;
     this.galleryView.ActiveFilterString = "[VisibleOnMap] = true";
     this.galleryView.ColumnSet.ExtraLargeImageColumn = this.galleryView.Columns["ThumbImage"];
     UpdateGalleryImageSize();
 }
예제 #2
0
 public MainForm(DmModel model)
 {
     //DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this, typeof(SplashScreenForm));
     StorageManager.Default.DialogsProvider = StorageManagerDialogsProvider.Default;
     Model = model;
     Application.AddMessageFilter(new MessageFilter(this));
     InitializeComponent();
     ActivateControl(tpLibrary, LibraryControl);
     this.quickGalleryView.OptionsImageLoad.AnimationType = LibraryControl.ConvertAnimationType(SettingsStore.Default.ImageAnimationType);
     //DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm();
     this.quickGalleryGridControl.Load += quickGalleryGridControl_Load;
 }