| | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="inType"></param> |
| | | public void SetAllButton(int inType) |
| | | { |
| | | var lstBtn = new List<string>(); |
| | | if (inType == 0) |
| | | { |
| | | lstBtn.Add(btnSave.Name); |
| | | lstBtn.Add(btnEsc.Name); |
| | | foreach (BarItem item in barManager1.Items) |
| | | if (item is BarLargeButtonItem largeButtonItem) |
| | | { |
| | | if (!lstBtn.Contains(item.Name)) |
| | | largeButtonItem.Enabled = true; |
| | | else |
| | | largeButtonItem.Enabled = false; |
| | | } |
| | | return; |
| | | } |
| | | if (inType == 2) |
| | | { |
| | | lstBtn.Add(btnHelp.Name); |
| | | lstBtn.Add(btnLoad.Name); |
| | | lstBtn.Add(btnQuery.Name); |
| | | lstBtn.Add(btnLayout.Name); |
| | | lstBtn.Add(btnFont.Name); |
| | | lstBtn.Add(btnAdd.Name); |
| | | foreach (BarItem item in barManager1.Items) |
| | | if (item is BarLargeButtonItem largeButtonItem) |
| | | { |
| | | if (lstBtn.Contains(item.Name)) |
| | | largeButtonItem.Enabled = true; |
| | | else |
| | | largeButtonItem.Enabled = false; |
| | | } |
| | | return; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |