using System.Runtime.InteropServices;
[DllImport("myDll.dll", CallingConvention=CallingConvention.StdCall)]
public static extern int Card();
[DllImport("myDll.dll", CallingConvention=CallingConvention.StdCall, Charset=Charset.Ansi)]
public static extern int cudaCard(IntPtr mWnd, IntPtr aWnd, string data, string parms, bool show, bool nopause);
Console.OutputEncoding = System.Text.Encoding.UTF8;
chcp 65001
protected override void WndProc(ref Message m)
, и там обрабатывать событие WM_DROPFILES и через DragQueryFile получить переданный список. public partial class radioTest2:RadioButton
{
public string note;
public radioTest2()
{
}
}
xmlns:MyNamespace="clr-namespace:projectWPF2.rcontrols;"
<MyNamespace:radioTest2 />
pack://application:,,,/ConfigWPF;component/saveButton.Image.png
var epoch = (timePicker.Value.Date.AddHours(21) - new DateTime(1970, 1, 1, 21, 0, 0)).TotalSeconds;
var epoch = (timePicker.Value.Date - new DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds;
if (count == 0)
if (count != 0)
<UserControl x:Class="WpfApplication3.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBox />
<ListBox Grid.Row="1" />
</Grid>
</UserControl>
public MyTextBox : TextBox
{
}
<TextBox x:Class="WpfApplication1.MyTextBox"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" >
</TextBox>