Extensions/ImageGlass.Core/InputBox.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* imaeg - generic image utility in C#
* Copyright (C) 2010 ed <tripflag@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License v2
* (version 2) as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, refer to the following URL:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
namespace ImageGlass.Core
{
public class InputBox
{
public static string Derp(string query, string std)
{
InputBox ib = new InputBox(query, std);
ib.ShowDialogue();
return ib.ret;
}
Form form;
Label label;
TextBox textbox;
public string ret;
public bool closed;
public InputBox(string query, string std)
{
form = null;
label = null;
textbox = null;
closed = false;
ret = null;
form = new Form();
form.StartPosition = FormStartPosition.CenterParent;
form.FormBorderStyle = FormBorderStyle.FixedToolWindow;
Label derp = new Label(); derp.Dock = DockStyle.Fill;
form.Controls.Add(derp); Size pad = new Size(
form.Width - derp.Width,
form.Height - derp.Height);
derp.Dispose();
label = new Label();
label.Text = query;
label.AutoSize = true;
label.Location = new Point(16, 16);
后面还有 39 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。