a1178f755f4739413af91086b261ebc0ff11d0fc4c380a8f0ef9dd9df6e3e106.source 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. #pragma checksum "..\..\..\..\Views\AiChatWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "A6EE6EA49866A956430BDD6759564044B24B328D"
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // This code was generated by a tool.
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. using HandyControl.Controls;
  11. using HandyControl.Data;
  12. using HandyControl.Expression.Media;
  13. using HandyControl.Expression.Shapes;
  14. using HandyControl.Interactivity;
  15. using HandyControl.Media.Animation;
  16. using HandyControl.Media.Effects;
  17. using HandyControl.Properties.Langs;
  18. using HandyControl.Themes;
  19. using HandyControl.Tools;
  20. using HandyControl.Tools.Converter;
  21. using HandyControl.Tools.Extension;
  22. using System;
  23. using System.Diagnostics;
  24. using System.Windows;
  25. using System.Windows.Automation;
  26. using System.Windows.Controls;
  27. using System.Windows.Controls.Primitives;
  28. using System.Windows.Controls.Ribbon;
  29. using System.Windows.Data;
  30. using System.Windows.Documents;
  31. using System.Windows.Forms.Integration;
  32. using System.Windows.Ink;
  33. using System.Windows.Input;
  34. using System.Windows.Markup;
  35. using System.Windows.Media;
  36. using System.Windows.Media.Animation;
  37. using System.Windows.Media.Effects;
  38. using System.Windows.Media.Imaging;
  39. using System.Windows.Media.Media3D;
  40. using System.Windows.Media.TextFormatting;
  41. using System.Windows.Navigation;
  42. using System.Windows.Shapes;
  43. using System.Windows.Shell;
  44. namespace LocalizationTool.Views {
  45. /// <summary>
  46. /// AiChatWindow
  47. /// </summary>
  48. public partial class AiChatWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
  49. #line 18 "..\..\..\..\Views\AiChatWindow.xaml"
  50. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  51. internal System.Windows.Controls.ComboBox CmbPermission;
  52. #line default
  53. #line hidden
  54. #line 34 "..\..\..\..\Views\AiChatWindow.xaml"
  55. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  56. internal System.Windows.Controls.TextBox TxtSystemPrompt;
  57. #line default
  58. #line hidden
  59. #line 40 "..\..\..\..\Views\AiChatWindow.xaml"
  60. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  61. internal System.Windows.Controls.ScrollViewer ChatScroll;
  62. #line default
  63. #line hidden
  64. #line 42 "..\..\..\..\Views\AiChatWindow.xaml"
  65. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  66. internal System.Windows.Controls.StackPanel ChatPanel;
  67. #line default
  68. #line hidden
  69. #line 49 "..\..\..\..\Views\AiChatWindow.xaml"
  70. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  71. internal System.Windows.Controls.Button BtnCompressContext;
  72. #line default
  73. #line hidden
  74. #line 52 "..\..\..\..\Views\AiChatWindow.xaml"
  75. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  76. internal System.Windows.Controls.TextBlock TxtContextUsage;
  77. #line default
  78. #line hidden
  79. #line 54 "..\..\..\..\Views\AiChatWindow.xaml"
  80. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  81. internal System.Windows.Controls.ProgressBar ProgressContext;
  82. #line default
  83. #line hidden
  84. #line 59 "..\..\..\..\Views\AiChatWindow.xaml"
  85. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  86. internal System.Windows.Controls.ComboBox CmbQuickPrompts;
  87. #line default
  88. #line hidden
  89. #line 65 "..\..\..\..\Views\AiChatWindow.xaml"
  90. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  91. internal System.Windows.Controls.Button BtnSend;
  92. #line default
  93. #line hidden
  94. #line 67 "..\..\..\..\Views\AiChatWindow.xaml"
  95. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  96. internal System.Windows.Controls.TextBox TxtInput;
  97. #line default
  98. #line hidden
  99. private bool _contentLoaded;
  100. /// <summary>
  101. /// InitializeComponent
  102. /// </summary>
  103. [System.Diagnostics.DebuggerNonUserCodeAttribute()]
  104. [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.11.0")]
  105. public void InitializeComponent() {
  106. if (_contentLoaded) {
  107. return;
  108. }
  109. _contentLoaded = true;
  110. System.Uri resourceLocater = new System.Uri("/LocalizationTool;component/views/aichatwindow.xaml", System.UriKind.Relative);
  111. #line 1 "..\..\..\..\Views\AiChatWindow.xaml"
  112. System.Windows.Application.LoadComponent(this, resourceLocater);
  113. #line default
  114. #line hidden
  115. }
  116. [System.Diagnostics.DebuggerNonUserCodeAttribute()]
  117. [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.11.0")]
  118. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
  119. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
  120. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
  121. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
  122. void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
  123. switch (connectionId)
  124. {
  125. case 1:
  126. this.CmbPermission = ((System.Windows.Controls.ComboBox)(target));
  127. #line 19 "..\..\..\..\Views\AiChatWindow.xaml"
  128. this.CmbPermission.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CmbPermission_SelectionChanged);
  129. #line default
  130. #line hidden
  131. return;
  132. case 2:
  133. #line 26 "..\..\..\..\Views\AiChatWindow.xaml"
  134. ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnResetPrompt_Click);
  135. #line default
  136. #line hidden
  137. return;
  138. case 3:
  139. #line 29 "..\..\..\..\Views\AiChatWindow.xaml"
  140. ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnSavePrompt_Click);
  141. #line default
  142. #line hidden
  143. return;
  144. case 4:
  145. this.TxtSystemPrompt = ((System.Windows.Controls.TextBox)(target));
  146. return;
  147. case 5:
  148. this.ChatScroll = ((System.Windows.Controls.ScrollViewer)(target));
  149. return;
  150. case 6:
  151. this.ChatPanel = ((System.Windows.Controls.StackPanel)(target));
  152. return;
  153. case 7:
  154. this.BtnCompressContext = ((System.Windows.Controls.Button)(target));
  155. #line 51 "..\..\..\..\Views\AiChatWindow.xaml"
  156. this.BtnCompressContext.Click += new System.Windows.RoutedEventHandler(this.BtnCompressContext_Click);
  157. #line default
  158. #line hidden
  159. return;
  160. case 8:
  161. this.TxtContextUsage = ((System.Windows.Controls.TextBlock)(target));
  162. return;
  163. case 9:
  164. this.ProgressContext = ((System.Windows.Controls.ProgressBar)(target));
  165. return;
  166. case 10:
  167. this.CmbQuickPrompts = ((System.Windows.Controls.ComboBox)(target));
  168. #line 60 "..\..\..\..\Views\AiChatWindow.xaml"
  169. this.CmbQuickPrompts.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CmbQuickPrompts_SelectionChanged);
  170. #line default
  171. #line hidden
  172. return;
  173. case 11:
  174. this.BtnSend = ((System.Windows.Controls.Button)(target));
  175. #line 66 "..\..\..\..\Views\AiChatWindow.xaml"
  176. this.BtnSend.Click += new System.Windows.RoutedEventHandler(this.BtnSend_Click);
  177. #line default
  178. #line hidden
  179. return;
  180. case 12:
  181. this.TxtInput = ((System.Windows.Controls.TextBox)(target));
  182. #line 69 "..\..\..\..\Views\AiChatWindow.xaml"
  183. this.TxtInput.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.TxtInput_PreviewKeyDown);
  184. #line default
  185. #line hidden
  186. return;
  187. }
  188. this._contentLoaded = true;
  189. }
  190. }
  191. }