Files
OpenJiraGui/Form1.Designer.cs
pi-ux-ce 2b4d07bb53
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Successful in 1m56s
update to match betfred
2026-06-09 10:00:22 +00:00

127 lines
4.0 KiB
C#

using Microsoft.VisualBasic.Devices;
namespace OpenJiraGui
{
partial class OpenJiraGui
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
///
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OpenJiraGui));
button_go = new Button();
jiraTextBox = new TextBox();
SuspendLayout();
//
// button_go
//
button_go.Anchor = AnchorStyles.None;
button_go.Location = new Point(614, 188);
button_go.Name = "button_go";
button_go.Size = new Size(75, 23);
button_go.TabIndex = 0;
button_go.Text = "GO";
button_go.UseVisualStyleBackColor = true;
button_go.Click += apply_button_clicked;
//
// jiraTextBox
//
jiraTextBox.Anchor = AnchorStyles.None;
jiraTextBox.Location = new Point(262, 188);
jiraTextBox.Name = "jiraTextBox";
jiraTextBox.Size = new Size(155, 23);
jiraTextBox.TabIndex = 2;
jiraTextBox.TextChanged += jiraTextBox_TextChanged;
//
// OpenJiraGui
//
AcceptButton = button_go;
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
BackColor = SystemColors.ActiveCaption;
BackgroundImage = (Image)resources.GetObject("$this.BackgroundImage");
ClientSize = new Size(926, 450);
Controls.Add(jiraTextBox);
Controls.Add(button_go);
Name = "OpenJiraGui";
Text = "Form1";
Load += OpenJiraGui_Load;
ResumeLayout(false);
PerformLayout();
Icon icon = Icon.ExtractAssociatedIcon("Icon1.ico");
this.Icon = icon;
}
private void textBoxTest_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
apply_button_clicked(this, new EventArgs());
}
}
public static void openit(string x)
{
System.Diagnostics.Process.Start("cmd", "/C start" + " " + x);
System.Windows.Forms.Application.Exit();
}
private void apply_button_clicked(object sender, EventArgs e)
{
string jira_number = jiraTextBox.Text;
//string userName = Environment.UserName;
//MessageBox.Show($"You want to access {jira_number}");
string root_url = "https://betfred.atlassian.net/browse/";
string full_url;
var deploy_task_number = jiraTextBox.Text;
if (!(deploy_task_number.IndexOf("SGPE", 0, StringComparison.OrdinalIgnoreCase) != -1))
{
Console.WriteLine("no argument in there");
deploy_task_number = "SGPE-" + deploy_task_number;
}
full_url = root_url + deploy_task_number;
Console.WriteLine($"{Environment.NewLine}I will open, {full_url}!");
openit(full_url);
}
#endregion
private Button button_go;
private TextBox jiraTextBox;
}
}