/// <summary> /// Sets the interaction menu. /// </summary> private void SetInteractionMenu() { RtbCode.Clear(); TsInteractions.DropDownItems.Clear(); _builder = new FunctionBuilder(_focusedApplicationHandle, _selectedControl); FillToolStripItems(); if (TsInteractions.DropDownItems.Count > 0) { TsInteractions.Enabled = true; } }
/// <summary> /// 显示容器 /// </summary> /// <param name="index">1.字段 2.代码</param> private void ShowContainer(int index) { if (index == 1) { DataGrid_Columns.Show(); RtbCode.Hide(); Btn_Column.Enabled = false; Btn_Code.Enabled = true; } else { DataGrid_Columns.Hide(); RtbCode.Show(); Btn_Column.Enabled = true; Btn_Code.Enabled = true; } }