Beispiel #1
0
 void _panelImage_HandleDestroyed(object sender, EventArgs e)
 {
     if (_model != null)
     {
         _model.Dispose();
         _model = null;
     }
 }
Beispiel #2
0
        /// ------------------------------------------------------------------------------------
        private void Initialize(string imageFileName)
        {
            var clickZoomPercentages = PortableSettingsProvider.GetIntArrayFromString(
                Settings.Default.ImageViewerClickImageZoomPercentages);

            if (_model != null)
            {
                _model.Dispose();
                _model = null;
            }

            _model = new ImageViewerViewModel(imageFileName, clickZoomPercentages);
        }