Ejemplo n.º 1
0
        public VariablesDialog(IFitter fitter)
        {
            initing = true;
            fFitter = fitter;
            InitializeComponent();


            DataGridView view = VariablesNameValue;

            view.Rows.Clear();
            foreach (var x in fFitter.fInitialValues)
            {
                view.Rows.Add(x.Key, x.Value.ToString());
            }
            initing = false;
        }
Ejemplo n.º 2
0
        public void postInit(String fileName, IFitter fitter, MainForm mainForm)
        {
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            ResizeRedraw = true;

            fMainForm  = mainForm;
            fImagePath = fileName;
            fImage     = new Bitmap(fImagePath);
            fImgSize   = fImage.Size;

            fOrigin = default(PointF);
            fScale  = 1;

            fFitter = fitter;
        }