/
anton.bessolitsyn
/
GraphTool
Обзор
Документация
Войти
/
anton.bessolitsyn
/
GraphTool
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
GraphToolWPF/View/GraphToolControl.xaml.cs
61 строка
2 KB
Anton Bessolitsyn
in progress
22 окт 2025, 10:25
22 окт 2025, 10:25
8675066
Код
Авторство
О чём код?
using Multicad.DataServices; using Multicad.Wpf.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Reflection.Metadata; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace GraphToolWPF.View { /// <summary> /// Interaction logic for GraphToolControl.xaml /// </summary> public partial class GraphToolControl : UserControl, IMgdBaseDialog { public GraphToolControl() { InitializeComponent(); //CloseBtn.Click += CloseBtn_Click; } public void Dispose() { //throw new NotImplementedException(); } public IntPtr GetHandle() { // Получаем окно, в котором находится UserControl Window window = Window.GetWindow(this); if (window == null) return IntPtr.Zero; // Создаем WindowInteropHelper для окна и получаем его handle var helper = new System.Windows.Interop.WindowInteropHelper(window); return helper.Handle; } public bool OnEvent(int Event, object param1, object param2) { return false; //throw new NotImplementedException(); } private void CloseBtn_Click(object sender, RoutedEventArgs e) { //this.HideWindow(); } } }