예제 #1
0
        public NuGenTransform()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            form = new NuGenForm(this);
            form.IsMdiContainer = true;
            form.CurveCombo.Items.Add(NuGenPointSetCollection.DefaultCurveName);
            form.CurveCombo.Enabled       = false;
            form.CurveCombo.SelectedIndex = 0;
            form.MeasureCombo.Items.Add(NuGenPointSetCollection.DefaultMeasureName);
            form.MeasureCombo.SelectedIndex         = 0;
            form.MeasureCombo.Enabled               = false;
            form.CurveCombo.SelectedIndexChanged   += new EventHandler(CurveCombo_SelectedIndexChanged);
            form.MeasureCombo.SelectedIndexChanged += new EventHandler(MeasureCombo_SelectedIndexChanged);

            NuGenDefaultSettings settings = NuGenDefaultSettings.GetInstance();

            mainWindowPos     = settings.WindowMainPosition;
            mainWindowSize    = settings.WindowMainSize;
            curveWindowPos    = settings.WindowCurvePosition;
            curveWindowSize   = settings.WindowCurveSize;
            measureWindowPos  = settings.WindowMeasurePosition;
            measureWindowSize = settings.WindowMeasureSize;
            otherWindowPos    = curveWindowPos;
            otherWindowSize   = curveWindowSize;

            System.Windows.Forms.Application.Run(form);
        }
예제 #2
0
        public NuGenTransform()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            form = new NuGenForm(this);
            form.IsMdiContainer = true;
            form.CurveCombo.Items.Add(NuGenPointSetCollection.DefaultCurveName);
            form.CurveCombo.Enabled = false;
            form.CurveCombo.SelectedIndex = 0;
            form.MeasureCombo.Items.Add(NuGenPointSetCollection.DefaultMeasureName);
            form.MeasureCombo.SelectedIndex = 0;
            form.MeasureCombo.Enabled = false;
            form.CurveCombo.SelectedIndexChanged += new EventHandler(CurveCombo_SelectedIndexChanged);
            form.MeasureCombo.SelectedIndexChanged += new EventHandler(MeasureCombo_SelectedIndexChanged);

            NuGenDefaultSettings settings = NuGenDefaultSettings.GetInstance();

            mainWindowPos = settings.WindowMainPosition;
            mainWindowSize = settings.WindowMainSize;
            curveWindowPos = settings.WindowCurvePosition;
            curveWindowSize = settings.WindowCurveSize;
            measureWindowPos = settings.WindowMeasurePosition;
            measureWindowSize = settings.WindowMeasureSize;
            otherWindowPos = curveWindowPos;
            otherWindowSize = curveWindowSize;            

            System.Windows.Forms.Application.Run(form);
        }