Beispiel #1
0
        public MainForm(Donnees dnn)
        {
            //association au modèle
            donnees = dnn;
            donnees.AddObserver(this);

            //Initialisation des composants
            InitializeComponent();
            listPictures.View           = View.LargeIcon;
            listPictures.LargeImageList = listPhotos;


            //Instanciatons des File et Browser Dialogs
            openFileDialog                  = new OpenFileDialog();
            this.openFileDialog.Filter      = "Image files | *.jpg; *.jpeg;";
            this.openFileDialog.Multiselect = true;
            this.openFileDialog.Title       = "Selection d'image à importer";
        }