Esempio n. 1
0
        public Form_Dialog_EditElement(GraphDoc Object, int v)
        {
            InitializeComponent();

            Buttons = new Button[]
            {
                button_axis,
                button_axisCaption,
                button_docCaption,
                button_grid,
                button_legend,
                button_addPoints
            };

            this.Object = Object;
            tabControl1.SelectedIndex = v;

            checkBox_axis_show.Checked       = Object.AxisParams.Show;
            textBox_axis_offset_x.Text       = Object.AxisParams.XOffset.ToString();
            textBox_axis_offset_y.Text       = Object.AxisParams.YOffset.ToString();
            textBox_axis_width.Text          = Object.AxisParams.Width.ToString();
            radioButton_axis_limited.Checked = !Object.AxisParams.UseUnlimited;
            colorDialog1.Color = Object.AxisParams.Color;
            radioButton_axis_limited.Checked   = !Object.AxisParams.UseUnlimited;
            radioButton_axis_unlimited.Checked = Object.AxisParams.UseUnlimited;
            radioButton_axis_limited_CheckedChanged(null, null);

            SetAxisColorProbe();
        }
Esempio n. 2
0
 private void Form_Graph_Load(object sender, EventArgs e)
 {
     Main = new GraphDoc()
     {
         AxisParams = new GraphDocAxis()
         {
             Color        = Color.Green,
             UseUnlimited = true,
             Show         = true,
             Width        = 1,
             XOffset      = 0,
             YOffset      = 0
         },
         LocalGraphDocVers = GraphDoc.GraphDocVers,
         AxisCaptionParams = new GraphDocAxiCaption()
         {
             AutoRange        = true,
             Display          = true,
             LowLim           = -(float)Math.PI * 2,
             HighLim          = (float)Math.PI * 2,
             Period           = (float)Math.PI,
             PeriodFormula    = TB.L.Phrase["Form_Graph.DefaultPeriodFormula"],
             HighLimFormula   = TB.L.Phrase["Form_Graph.DefaultHighLimFormula"],
             LowLimFormula    = TB.L.Phrase["Form_Graph.DefaultLowLimFormula"],
             DisplayXAxisName = false,
             DisplayYAxisName = false,
             isIndependence   = false,
             XAxisName        = "",
             YAxisName        = ""
         }
     };
     Zoom                    = DefZoom;
     trackBar1.Value         = DefZoom;
     MouseWheel             += PictureBox1_MouseWheel;
     loadingCircle_tab1.Top  = panel_wait.Height / 2 - loadingCircle_tab1.Height / 2 - 40;
     loadingCircle_tab1.Left = panel_wait.Width / 2 - loadingCircle_tab1.Width / 2;
     panel_wait.Top          = Height / 2 - panel_wait.Height / 2 - 40;
     panel_wait.Left         = Width / 2 - panel_wait.Width / 2;
     panel_loaderr.Top       = Height / 2 - panel_loaderr.Height / 2 - 40;
     panel_loaderr.Left      = Width / 2 - panel_loaderr.Width / 2;
 }
Esempio n. 3
0
 private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
 {
     Main = GraphDoc.Load(FileName);
 }