/
Logris
/
FileWatchService
Обзор
Документация
Войти
/
Logris
/
FileWatchService
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
AdminTools/Service/MiracleService/MainWindow.xaml
62 строки
3 KB
Logrus
first commit
15 мар 2025, 14:15
15 мар 2025, 14:15
6de831b
Код
Авторство
О чём код?
<Window x:Class="MiracleAdmin.Service.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:MiracleService="clr-namespace:MiracleAdmin.Service" Title="MiracleService" Width="525" Height="150" Closed="Window_Closed" DataContext="{Binding}" ShowInTaskbar="False" Visibility="Hidden"> <Grid> <MiracleService:TaskbarIcon x:Name="NotifyIcon" IconSource="MGGT_kubik.ico" ToolTipText="{Binding ToolTipString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> <MiracleService:TaskbarIcon.ContextMenu> <ContextMenu> <MenuItem Click="MenuItem_Properties" Header="Properties"> <MenuItem.Icon> <Image Width="16" Height="16" Source="Resource/Property.png" /> </MenuItem.Icon> </MenuItem> <Separator /> <MenuItem Click="MenuItem_Click_Close" Header="Stop service" /> </ContextMenu> </MiracleService:TaskbarIcon.ContextMenu> <!--<MiracleService:TaskbarIcon.TrayPopup> <Border Background="#FF5F5E5E" BorderBrush="#FF3399FF" BorderThickness="4" CornerRadius="1" MinHeight="80" MinWidth="250"> <StackPanel> <StackPanel Orientation="Horizontal" Margin="10"> <Image Source="Resource/m_black.ico" Margin="20,0,0,0"></Image> <TextBlock Text="Miracle Admin Service" Margin="10,0,0,0" FontSize="14" VerticalAlignment="Bottom" Foreground="White" FontStyle="Italic"/> </StackPanel> <StackPanel Orientation="Horizontal"> <TextBlock Foreground="White" Text="Port:" Margin="5" FontWeight="Bold" VerticalAlignment="Center"/> <Border BorderThickness="1" CornerRadius="2" BorderBrush="#FF787878" Margin="15,5,15,5" Padding="25,0,25,0" Background="#FF4D4C4C"> <TextBlock x:Name="popupTxtPort" Foreground="White" Text=""/> </Border> </StackPanel> <StackPanel Orientation="Horizontal" Margin="0,0,0,10"> <TextBlock Foreground="White" Text="Path:" Margin="5" FontWeight="Bold"/> <Border BorderThickness="1" CornerRadius="2" BorderBrush="#FF787878" Margin="15,5,15,5" Padding="25,0,25,0" Background="#FF4D4C4C"> <TextBlock x:Name="popupTxtCommand" Foreground="White" Text=""/> </Border> </StackPanel> </StackPanel> </Border> </MiracleService:TaskbarIcon.TrayPopup>--> </MiracleService:TaskbarIcon> </Grid> </Window>