private void Graph_Form_Process(GRAPH_TYPE Type, GRAPH_SCALEMODE mode) { switch (Type) { case GRAPH_TYPE.TwoDimension: List_Graph_ScaleMode.Enabled = false; num_Graph_Interval.Enabled = false; check_Graph_Realtime.Checked = false; check_Graph_XY.Enabled = true; check_Graph_XZ.Enabled = true; check_Graph_YZ.Enabled = true; break; case GRAPH_TYPE.Realtime: List_Graph_ScaleMode.Enabled = true; num_Graph_Interval.Enabled = true; check_Graph_XY.Enabled = false; check_Graph_XZ.Enabled = false; check_Graph_YZ.Enabled = false; break; case GRAPH_TYPE.Both: List_Graph_ScaleMode.Enabled = true; num_Graph_Interval.Enabled = true; check_Graph_XY.Enabled = true; check_Graph_XZ.Enabled = true; check_Graph_YZ.Enabled = true; break; } switch (mode) { case GRAPH_SCALEMODE.Center: group_Interval.Enabled = true; Graph_SCaleMode = mode; break; case GRAPH_SCALEMODE.Compact: group_Interval.Enabled = false; Graph_SCaleMode = mode; break; case GRAPH_SCALEMODE.Scroll: group_Interval.Enabled = true; Graph_SCaleMode = mode; break; case GRAPH_SCALEMODE.Free: group_Interval.Enabled = false; Graph_SCaleMode = mode; break; } }
private void Graph_Form_Update(GRAPH_TYPE Type, GRAPH_SCALEMODE mode) { this.Invoke(new Graph_UpdateForm_Callback(this.Graph_Form_Process), new object[] { Type, mode }); }