public RasterMinMaxView() { InitializeComponent(); CalculationType = _lastType; FormClosed += (s, e) => _lastType = CalculationType; }
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); }