Название проекта:
c[sharp] Надо сделать контрол с изображением, при клике по которому передаются координаты в переменную
Кто разместил:
Внешний проект с free-lance.ru
Открыт:
04-Apr-2024 14:08 GMT
Описание:
Надо сделать контрол с изображением, при клике по которому передаются координаты в переменную System.Windows.Forms.Form F = new System.Windows.Forms.Form(); System.Windows.Forms.TextBox infotext = new System.Windows.Forms.TextBox(); infotext.Location = new System.Drawing.Point(50, 50); F.Text = "";//$"{project.Variables["linea_ind"].Value} {instance.Port}"; infotext.Width = 450; F.Width = infotext.Width + 100; infotext.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; infotext.Height = 200; F.Height += 100; infotext.ReadOnly = true; infotext.Text = string.Join("\r\n", new string[] { "Если клауд не решился руками, то жмать Х", // $" [{project.Variables["linea_ind"].Value}] {project.Variables["dsc_email"].Value}", // $"{project.Variables["metamask_addr"].Value}", // project.LastExecutedActionId, // instance.Port.ToString(), "", "Х - завершение потока", // $"прокси: |{project.Variables["proxy"].Value}|", DateTimeOffset.Now.ToString("G") // "hETH:", // project.Variables["eth_call_rsp"].Value }); infotext.Multiline = true; F.Controls.Add(infotext); bool iscontinue = false; System.Windows.Forms.Button iscontinueBtn = new System.Windows.Forms.Button(); iscontinueBtn.Width = 300; iscontinueBtn.Text = "Нажать когда линея починится"; iscontinueBtn.Click += (evnt, hndlr) => { iscontinue = true; F.Close(); }; F.Controls.Add(iscontinueBtn); F.ShowDialog(); //bool isclicked = iscontinueBtn. string tores = infotext.Text; F.Dispose(); if (!iscontinue) { // return null; } return iscontinue;
Project ID:
4644898
Категория проекта:
Программирование, Системное программирование
Бюджет проекта:
5000 руб