예제 #1
0
        public RasterMinMaxView()
        {
            InitializeComponent();

            CalculationType = _lastType;

            FormClosed += (s, e) => _lastType = CalculationType;
        }
예제 #2
0
        private bool GetCalculationType(out MinMaxCalculationType calculationType)
        {
            var model = new RasterMinMaxModel(null);

            if (_context.Container.Run <RasterMinMaxPresenter, RasterMinMaxModel>(model, ParentForm))
            {
                calculationType = model.CalculationType;
                return(true);
            }

            calculationType = MinMaxCalculationType.Precise;
            return(false);
        }