text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_suffix|>/ var packageVer = Package.Current.Id.Version;
// string oldVer = ApplicationSettingsStore.Read(SettingsKey.AppVersionStr) as string ?? "";
// string currentVer = $"{packageVer.Major}.{packageVer.Minor}.{packageVer.Build}.{packageVer.Revision}";
// if (currentVer != ol... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// <|fim_suffix|>Meaning you should not call base.OnKeyDown after execution
/// All parent OnKeyDown event will not be received and should not be triggered if it is true
/// </summary>
public bool ShouldSwallow { get; }
}
}<|fim_middle|>----------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 201<|fim_suffix|>oject root for license information.
// ---------------------------------------------------------------------------------------------
namespace Notepads.Commands
{
publi... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All r<|fim_suffix|>ution();
void Execute(T args);
}
}<|fim_middle|>ights reserved.
// See LICENSE file in the project root for license informatio... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>d<in T>
{
bool Hit(
bool ctrlDown,
bool altDown,
bool shiftDown,
bool leftButtonDown,
bool middleButtonDown,
bool rightButtonDown);
bool ShouldHandleAfterExecution();
bool ShouldSwallowAfterExecution();
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> }
public void Execute(T args)
{
_action?.Invoke(args);
}
}
}<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>To).Properties;
var shouldHandle = false;
var shouldSwallow = false;
foreach (var command in Commands)
{
if (command.Hit(
ctrlDown,
altDown,
shiftDown,
point.IsL... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>t");
SecondaryButtonText = ResourceLoader.GetString("AppCloseSaveReminderDialog_SecondaryButtonText");
CloseButtonText = ResourceLoader.GetString("AppCloseSaveReminderDialog_CloseButtonText");
PrimaryButtonStyle = GetButtonStyle(Color.FromArgb(255, 38, 114, 201));
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi <|fim_suffix|>og : NotepadsDialog
{
public FileOpenErrorDialog(string filePath, string errorMsg)
{
Title = ResourceLoader.GetString("FileOpen... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>: NotepadsDialog
{
public FileSaveErrorDialog(string filePath, string errorMsg)
{
var content = string.IsNullOrEmpty(filePath) ? errorMsg : string.Format(ResourceLoader.GetString("FileSaveErrorDialog_Content"), filePath, errorMsg);
Title = ResourceLoader.GetStri... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ----------------------------------------------------------<|fim_suffix|>-------------------------------------------------------
namespace Notepads.Controls.Dialog
{
using System;
public sealed class RevertAllChangesConfirmationDialog : NotepadsDialog
{
public RevertAllChangesConf... | fim | 0x7c13/Notepads | csharp |
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -----------------------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>Media;
public sealed class BrushFactory
{
private readonly Dictionary<Color, SolidColorBrush> _brushes = new Dictionary<Color, SolidColorBrush>();
public SolidColorBrush GetOrCreateSolidColorBrush(Color color)
{
if (_brushes.TryGetValue(color, out var brush))
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---<|fim_suffix|>ideBySideDiffViewer
{
void RenderDiff(string left, string right, ElementTheme theme);
}
}<|fim_middle|>------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// S... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> }
}
}<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------... | fim | 0x7c13/Notepads | csharp |
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -----------------------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>or color)
{
await Dispatcher.CallOnUIThreadAsync(() =>
{
LeftTextBlock.SelectionHighlightColor = new SolidColorBrush(color);
RightTextBlock.SelectionHighlightColor = new SolidColorBrush(color);
});
}
private Keybo... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------<|fim_suffix|>itor;
using Utilities;
using Windows.Storage.Pickers;
public static class FilePickerFactory
{
private static IList<string> _allSupportedExtensions;
private static IList<string> AllSupportedExtensio... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> {
_shouldUpdateSearchString = false;
OnToggleReplaceModeButtonClicked?.Invoke(sender, ReplaceBarPlaceHolder.Visibility == Visibility.Collapsed ? true : false);
}
}
}<|fim_prefix|>// --------------------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>}<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> return;
}
if (!e.Handled)
{
base.OnKeyDown(e);
}
}
}
}<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu.... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------<|fim_suffix|> }
}
}
<|fim_middle|>------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>Line = searchLine;
}
public string SearchLine { get; }
}
}<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for ... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>ty = MarkdownTextBlock.TextWrapping == TextWrapping.Wrap ? ScrollBarVisibility.Disabled : ScrollBarVisibility.Visible;
}
}
private async void MarkdownTextBlock_OnLinkClicked(object sender, LinkClickedEventArgs e)
{
if (string.IsNullOrEmpty(e.Link))
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>erTextBlock.FontSize = textEditorFontSize + 4;
}
else
{
Header.Visibility = Visibility.Collapsed;
HeaderTextBlock.FontFamily = textEditorFontFamily;
HeaderTextBlock.FontSize = textEditorFontSize + 4;
}
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>tcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
_printDocument.InvalidatePreview();
});
}
}
/// <summary>
/// This method will show PrintManager UI and its options
/// Any printing error ... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>ed { get; }
FileModificationState FileModificationState { get; }
TextEditorMode Mode { get; }
bool DisplayLineNumbers { get; set; }
bool DisplayLineHighlighter { get; set; }
void Init(TextFile textFile,
StorageFile file,
bool resetLastSa... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>namespace Notepads.Controls.TextEditor
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Notepads.Commands;
using Notepads.Controls.FindAndReplace;
using Notepads.Controls.GoTo;
using Notepa... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -----------------------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>cumentLinesCache();
var line = lines[startLineIndex - 1];
var column = Document.Selection.EndPosition + line.Length + 1;
if (startColumnIndex == 1)
Document.Selection.EndPosition += 1;
Document.Select... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>nUIThreadAsync(() =>
{
FontFamily = new FontFamily(fontFamily);
SetDefaultTabStopAndLineSpacing(FontFamily, FontSize);
});
}
private async void EditorSettingsService_OnFontSizeChanged(object sender, int fontSize)
{
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>Ending.ToString()
: string.Empty));
end += indentAmount;
}
if (string.Equals(document.Substring(startLineInitialIndex, endLineFinalIndex - startLineInitialIndex),
indentedStringBuilder.ToString())) return;
if (Docume... | fim | 0x7c13/Notepads | csharp |
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -----------------------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>equisiteWidth)
{
minRequisiteWidth = width;
}
}
_minRequisiteIntegerTextRenderingWidthCache[cacheKey] = minRequisiteWidth;
return minRequisiteWidth;
}
private Dictionary<int, Rect> CalculateLineNumber... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> Document.Selection.Type == SelectionType.Shape)
{
var mouseWheelDelta = args.GetCurrentPoint(this).Properties.MouseWheelDelta;
_contentScrollViewer.ChangeView(null, _contentScrollViewer.VerticalOffset + (-1 * mouseWheelDelta), null, false);
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for licens<|fim_suffix|>-----------------------------------------------------------
namespace No... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>eateTextEditorAsync(
Guid id,
StorageFile file,
Encoding encoding = null,
bool ignoreFileSizeLimit = false);
ITextEditor CreateTextEditor(
Guid id,
TextFile textFile,
StorageFile editingFile,
string fi... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>SessionDataAsync();
Task<int> RecoverBackupFilesAsync();
Task OpenSessionBackupFolderAsync();
}
}<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu<|fim_middle|>. All rights r... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>(textEditorSetsViewItem);
}
else
{
_sets.Items?.Insert(atIndex, textEditorSetsViewItem);
}
if (GetNumberOfOpenedTextEditors() > 1)
{
_sets.SelectedItem = textEditorSetsViewItem;
if (atI... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>ilePath { get; set; }
public string EditingFileFutureAccessToken { get; set; }
public string EditingFileName { get; set; }
public string EditingFilePath { get; set; }
public TextEditorStateMetaData StateMetaData { get; set; }
}
}<|fim_prefix|>// -------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> }
var textFile = new TextFile(lastSavedText,
EncodingUtility.GetEncodingByName(editorSessionData.StateMetaData.LastSavedEncoding),
LineEndingUtility.GetLineEndingByName(editorSessionData.StateMetaData.LastSavedLineEnding),
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>TextEditors(
(textEditor) =>
{
if (!textEditor.IsModified)
{
_notepadsCore.CloseTextEditor(textEditor);
}
});
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>using Windows.UI.Core;
public static class DispatcherExtensions
{
public static async Task CallOnUIThreadAsync(this CoreDispatcher dispatcher, DispatchedHandler handler)
{
await dispatcher.RunAsync(CoreDispatcherPriority.Normal, handler);
}
}
}<|fim_prefix|... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// --------------------------------------------------------------------------------------<|fim_suffix|> bool IsExtensionEnabled { get; set; }
}
}<|fim_middle|>-------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>root for license information.
// ---------------------------------------------------------------------------------------------
namespace Notepads.Extensions
{
using Utilities;
public interface INotepadsExtensionProvider
{
IContentPreviewExtension GetContentPreviewExtension(FileType f... | fim | 0x7c13/Notepads | csharp |
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -----------------------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>ollowing
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Notepads")]
[assembly: AssemblyDescription("A modern, lightweight text editor with a minimalist design.")]
[assembly: AssemblyConfiguration("")]
[assembly: Asse... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ----------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>t Document
".txt",
//T
".t",
//TOML
".toml",
//TypeScript
".ts", ".tsx",
//User
".user",
//Verilog
".v",
//Visual Basic
".vb", ".vbs", ".brs", ".bas",... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>l) is bool isJumpListOutOfDate)
{
return isJumpListOutOfDate;
}
return true;
}
set => ApplicationSettingsStore.Write(SettingsKey.IsJumpListOutOfDateBool, value);
}
public static async Task<bool> U... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> { "Exception", ex.ToString() }
});
}
}
}
}<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the pr... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>vate static NotificationCenter _instance;
private INotificationDelegate _notificationDelegate;
private NotificationCenter()
{
}
public static NotificationCenter Instance => _instance ?? (_instance = new NotificationCenter());
public void SetNotificationD... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>enuOpened resource color
((RevealBackgroundBrush)Application.Current.Resources["SystemControlHighlightAccent3RevealBackgroundBrush"]).Color = color;
}
catch (Exception)
{
// ignore
}
}
}
}<|fim_prefix|>// --------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -------------<|fim_suffix|> }
public static bool Remove(str... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -----------------------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>so-8859-8)" },
{ 932, "Japanese (shift_jis)" },
{ 51932, "Japanese (euc-jp)" },
{ 50220, "Japanese (iso-2022-jp)" },
{ 51949, "Korean (euc-kr)" },
{ 949, "Korean (ks_c_5601-1987)" },
{ 50225, "Korean (iso-2022-kr)" },
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project ro<|fim_suffix|> information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -----------------------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>tility.FileExistsAsync(file))
{
StorageApplicationPermissions.FutureAccessList.AddOrReplace(token, file);
return true;
}
}
catch (Exception ex)
{
LoggingService.LogError($"[{nameof(F... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>ublic class LanguageItem
{
private string _id;
public string ID
{
get => _id;
set
{
_id = value;
Name = string.IsNullOrEmpty(value)
? ResourceLoader.GetForCurrentView().GetString("/Settings... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7<|fim_suffix|>See LICENSE file in the project root for license information.
// ------------------------------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>not be tracked.
private void TrackFileExtensionIfNotSupported(StorageFile file)
{
try
{
var extension = FileTypeUtility.GetFileExtension(file.Name).ToLower();
if (!FileExtensionProvider.AllSupportedFileExtensions.Contains(extension))
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>ender, args) => RootSplitView.IsPaneOpen = true;
if (!App.IsPrimaryInstance)
{
MainMenuButton.Foreground = new SolidColorBrush(ThemeSettingsService.AppAccentColor);
MenuSettingsButton.IsEnabled = false;
}
if (App.IsGameBarWi... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>ealed partial class NotepadsMainPage : INotificationDelegate
{
private void InitializeNotificationCenter()
{
NotificationCenter.Instance.SetNotificationDelegate(this);
}
public void PostNotification(string message, int duration)
{
if (St... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>ectedEditor.FileModificationState == FileModificationState.Modified)
{
FileModificationStateIndicator.ContextFlyout.ShowAt(FileModificationStateIndicator);
}
else if (selectedEditor.FileModificationState == FileModificationState.RenamedMovedOrDeleted)
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> ThemeSettingsService.SetRequestedTheme(RootGrid, Window.Current.Content, ApplicationView.GetForCurrentView().TitleBar);
});
}
private async void ThemeSettingsService_OnBackgroundChanged(object sender, Brush backgroundBrush)
{
await Dispatcher.CallOnUITh... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -------------------------------<|fim_suffix|>)
{
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> {
App.InstanceHandlerMutex?.Dispose();
deferral.Complete();
},
cancelAction: () =>
{
e.Handled = true;
deferral.Complete();
});
var r... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>oid ThemeSettingsService_OnThemeChanged(object sender, ElementTheme theme)
{
await Dispatcher.CallOnUIThreadAsync(() =>
{
SetAppIconBasedOnTheme(theme);
});
}
private void SetAppIconBasedOnTheme(ElementTheme theme)
{
... | fim | 0x7c13/Notepads | csharp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.