542812eb74
1. 防止异常重启死循环 2. 为未来可能的新功能做准备
202 lines
8.0 KiB
C#
202 lines
8.0 KiB
C#
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2F83C72861203F56E137DC704561E979347ABF79"
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.42000
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
using Hardcodet.Wpf.TaskbarNotification;
|
|
using Ink_Canvas;
|
|
using NHotkey.Wpf;
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.Windows;
|
|
using System.Windows.Automation;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Controls.Primitives;
|
|
using System.Windows.Controls.Ribbon;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Forms.Integration;
|
|
using System.Windows.Ink;
|
|
using System.Windows.Input;
|
|
using System.Windows.Markup;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Animation;
|
|
using System.Windows.Media.Effects;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Media.Media3D;
|
|
using System.Windows.Media.TextFormatting;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using System.Windows.Shell;
|
|
using iNKORE.UI.WPF.Modern;
|
|
using iNKORE.UI.WPF.Modern.Common;
|
|
using iNKORE.UI.WPF.Modern.Common.Converters;
|
|
using iNKORE.UI.WPF.Modern.Common.IconKeys;
|
|
using iNKORE.UI.WPF.Modern.Controls;
|
|
using iNKORE.UI.WPF.Modern.Controls.Helpers;
|
|
using iNKORE.UI.WPF.Modern.Controls.Primitives;
|
|
using iNKORE.UI.WPF.Modern.Helpers;
|
|
using iNKORE.UI.WPF.Modern.Helpers.Styles;
|
|
using iNKORE.UI.WPF.Modern.Input;
|
|
using iNKORE.UI.WPF.Modern.Markup;
|
|
using iNKORE.UI.WPF.Modern.Media;
|
|
using iNKORE.UI.WPF.Modern.Media.Animation;
|
|
using iNKORE.UI.WPF.Modern.Native;
|
|
using iNKORE.UI.WPF.Modern.Themes.DesignTime;
|
|
|
|
|
|
namespace Ink_Canvas {
|
|
|
|
|
|
/// <summary>
|
|
/// App
|
|
/// </summary>
|
|
public partial class App : System.Windows.Application, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
|
|
|
|
private bool _contentLoaded;
|
|
|
|
/// <summary>
|
|
/// InitializeComponent
|
|
/// </summary>
|
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "9.0.0.0")]
|
|
public void InitializeComponent() {
|
|
if (_contentLoaded) {
|
|
return;
|
|
}
|
|
_contentLoaded = true;
|
|
|
|
#line 7 "..\..\..\App.xaml"
|
|
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
|
|
|
|
#line default
|
|
#line hidden
|
|
System.Uri resourceLocater = new System.Uri("/InkCanvasForClass;component/app.xaml", System.UriKind.Relative);
|
|
|
|
#line 1 "..\..\..\App.xaml"
|
|
System.Windows.Application.LoadComponent(this, resourceLocater);
|
|
|
|
#line default
|
|
#line hidden
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "9.0.0.0")]
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
|
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
|
switch (connectionId)
|
|
{
|
|
case 2:
|
|
|
|
#line 13 "..\..\..\App.xaml"
|
|
((System.Windows.Controls.ContextMenu)(target)).Opened += new System.Windows.RoutedEventHandler(this.SysTrayMenu_Opened);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 3:
|
|
|
|
#line 14 "..\..\..\App.xaml"
|
|
((System.Windows.Controls.MenuItem)(target)).Checked += new System.Windows.RoutedEventHandler(this.HideICCMainWindowTrayIconMenuItem_Checked);
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 14 "..\..\..\App.xaml"
|
|
((System.Windows.Controls.MenuItem)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.HideICCMainWindowTrayIconMenuItem_UnChecked);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 4:
|
|
|
|
#line 55 "..\..\..\App.xaml"
|
|
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ForceFullScreenTrayIconMenuItem_Clicked);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 5:
|
|
|
|
#line 88 "..\..\..\App.xaml"
|
|
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FoldFloatingBarTrayIconMenuItem_Clicked);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 6:
|
|
|
|
#line 133 "..\..\..\App.xaml"
|
|
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetFloatingBarPositionTrayIconMenuItem_Clicked);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 7:
|
|
|
|
#line 164 "..\..\..\App.xaml"
|
|
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.RestartAppTrayIconMenuItem_Clicked);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 8:
|
|
|
|
#line 196 "..\..\..\App.xaml"
|
|
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseAppTrayIconMenuItem_Clicked);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
}
|
|
this._contentLoaded = true;
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "9.0.0.0")]
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
|
void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
|
|
System.Windows.EventSetter eventSetter;
|
|
switch (connectionId)
|
|
{
|
|
case 1:
|
|
eventSetter = new System.Windows.EventSetter();
|
|
eventSetter.Event = System.Windows.UIElement.PreviewMouseWheelEvent;
|
|
|
|
#line 11 "..\..\..\App.xaml"
|
|
eventSetter.Handler = new System.Windows.Input.MouseWheelEventHandler(this.ScrollViewer_PreviewMouseWheel);
|
|
|
|
#line default
|
|
#line hidden
|
|
((System.Windows.Style)(target)).Setters.Add(eventSetter);
|
|
break;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Application Entry Point.
|
|
/// </summary>
|
|
[System.STAThreadAttribute()]
|
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "9.0.0.0")]
|
|
public static void Main() {
|
|
Ink_Canvas.App app = new Ink_Canvas.App();
|
|
app.InitializeComponent();
|
|
app.Run();
|
|
}
|
|
}
|
|
}
|
|
|