void button1_Click(object sender, System.EventArgs e)
        {
            GridSettingsDialog dlg = new GridSettingsDialog(gridRemovalMesh, coordSettings);

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                gridRemovalMesh = dlg.Settings;

                ValueChanged(true);
            }
        }
Пример #2
0
        public void GridDisplay_Settings_Click(object sender, System.EventArgs args)
        {
            if (!(ActiveDocument.ValidScale || ActiveDocument.ValidAxes))
            {
                MessageBox.Show("Must define axes points in order to use grid lines");
                return;
            }

            GridSettingsDialog dlg = new GridSettingsDialog(ActiveDocument.GridDisplaySettings, ActiveDocument.CoordSettings);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                ActiveDocument.GridDisplaySettings = dlg.Settings;

                ActiveDocument.MakeGridLines();

                activeView.DrawAll();
                activeView.Refresh();
            }
        }
        void button1_Click(object sender, System.EventArgs e)
        {
            GridSettingsDialog dlg = new GridSettingsDialog(gridRemovalMesh, coordSettings);

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                gridRemovalMesh = dlg.Settings;

                ValueChanged(true);
            }
        }
Пример #4
0
        public void GridDisplay_Settings_Click(object sender, System.EventArgs args)
        {
            if (!(ActiveDocument.ValidScale || ActiveDocument.ValidAxes))
            {
                MessageBox.Show("Must define axes points in order to use grid lines");
                return;
            }

            GridSettingsDialog dlg = new GridSettingsDialog(ActiveDocument.GridDisplaySettings, ActiveDocument.CoordSettings);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                ActiveDocument.GridDisplaySettings = dlg.Settings;

                ActiveDocument.MakeGridLines();

                activeView.DrawAll();
                activeView.Refresh();
            }
        }