Skip to content

Instantly share code, notes, and snippets.

<Window x:Class="WpfApp5.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp5"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
class ScheduledJobsManager : IScheduledJobsManager
{
public List<JobScheduleDetails> JobScheduleDetails { get; }
public ScheduledJobsManager()
{
JobScheduleDetails = new List<JobScheduleDetails>();
}
public void RegisterJob(JobScheduleDetails schedule)

Extracted app.asar file in resources:

C:\Program Files (x86)\Test Runner (Azure Test Plans)\resources> npx asar extract app.asar app

Opened Main.js in C:\Program Files (x86)\Test Runner (Azure Test Plans)\resources\app\lib\Main

Added the lines:

 if (this.isSingleInstance()) {
@jespersh
jespersh / MaterialDesignTheme.TabControl.xaml
Created December 6, 2018 14:19
Tabcontrol and tabitem for MaterialDesignTheme
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wpf="http://materialdesigninxaml.net/winfx/xaml/themes">
<Style x:Key="MaterialDesignTabControl" TargetType="{x:Type TabControl}">
<Setter Property="BorderThickness" Value="1" />
</Style>
<Style x:Key="MaterialDesignTabItem" TargetType="{x:Type TabItem}">
<Setter Property="Background" Value="{DynamicResource MaterialDesignBackground}" />