mirror of
https://github.com/EpicMorg/UniversalValveToolbox.git
synced 2025-01-14 15:48:13 +03:00
moved files
This commit is contained in:
parent
ed7093c350
commit
f653be81a1
48
src/UniversalValveToolbox/forms/FormEditProfile.Designer.cs
generated
Normal file
48
src/UniversalValveToolbox/forms/FormEditProfile.Designer.cs
generated
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
namespace UniversalValveToolbox.forms {
|
||||||
|
partial class FormEditProfile {
|
||||||
|
/// <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(FormEditProfile));
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// FormEditProfile
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(470, 144);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.MinimizeBox = false;
|
||||||
|
this.Name = "FormEditProfile";
|
||||||
|
this.ShowInTaskbar = false;
|
||||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
|
this.Text = "Edit";
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
17
src/UniversalValveToolbox/forms/FormEditProfile.cs
Normal file
17
src/UniversalValveToolbox/forms/FormEditProfile.cs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace UniversalValveToolbox.forms {
|
||||||
|
public partial class FormEditProfile : Form {
|
||||||
|
public FormEditProfile() {
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,35 +1,22 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace UniversalValveToolbox
|
namespace UniversalValveToolbox {
|
||||||
{
|
public partial class FormMain : Form {
|
||||||
public partial class FormMain : Form
|
public FormMain() {
|
||||||
{
|
|
||||||
public FormMain()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
FillBaseMenuItems();
|
FillBaseMenuItems();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FormMain_Load(object sender, EventArgs e)
|
private void FormMain_Load(object sender, EventArgs e) {
|
||||||
{
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FillBaseMenuItems() {
|
private void FillBaseMenuItems() {
|
||||||
ListViewGroup listViewGroupSettings = new ListViewGroup(Properties.str.strSettings);
|
ListViewGroup listViewGroupSettings = new ListViewGroup(Properties.str.strSettings);
|
||||||
ListViewGroup listViewGroupWebLinks = new ListViewGroup(Properties.str.strWebLinks);
|
ListViewGroup listViewGroupWebLinks = new ListViewGroup(Properties.str.strWebLinks);
|
||||||
|
|
||||||
ListViewItem listViewItemSettings = new ListViewItem(Properties.str.strSettings, 2);
|
ListViewItem listViewItemSettings = new ListViewItem(Properties.str.strSettings, 2);
|
||||||
ListViewItem listViewItemEditConfigurations = new ListViewItem(Properties.str.strEditConfigurations, 3);
|
ListViewItem listViewItemEditConfigurations = new ListViewItem(Properties.str.strEditConfigurations, 3);
|
||||||
ListViewItem listViewItemGitHubLink = new ListViewItem(Properties.str.strGitHubLink, 0);
|
ListViewItem listViewItemGitHubLink = new ListViewItem(Properties.str.strGitHubLink, 0);
|
||||||
@ -39,7 +26,7 @@ namespace UniversalValveToolbox
|
|||||||
|
|
||||||
listViewGroupWebLinks.Header = Properties.str.strWebLinks;
|
listViewGroupWebLinks.Header = Properties.str.strWebLinks;
|
||||||
listViewGroupWebLinks.Name = "ListViewGroupUrls";
|
listViewGroupWebLinks.Name = "ListViewGroupUrls";
|
||||||
|
|
||||||
listViewItemSettings.Group = listViewGroupSettings;
|
listViewItemSettings.Group = listViewGroupSettings;
|
||||||
listViewItemEditConfigurations.Group = listViewGroupSettings;
|
listViewItemEditConfigurations.Group = listViewGroupSettings;
|
||||||
|
|
||||||
@ -49,8 +36,7 @@ namespace UniversalValveToolbox
|
|||||||
listView.Items.AddRange(new ListViewItem[] { listViewItemSettings, listViewItemEditConfigurations, listViewItemGitHubLink });
|
listView.Items.AddRange(new ListViewItem[] { listViewItemSettings, listViewItemEditConfigurations, listViewItemGitHubLink });
|
||||||
}
|
}
|
||||||
|
|
||||||
private void button_Launch_Click(object sender, EventArgs e)
|
private void button_Launch_Click(object sender, EventArgs e) {
|
||||||
{
|
|
||||||
var frmSettings = new FormSettings();
|
var frmSettings = new FormSettings();
|
||||||
frmSettings.ShowDialog();
|
frmSettings.ShowDialog();
|
||||||
}
|
}
|
||||||
@ -86,23 +72,23 @@ namespace UniversalValveToolbox
|
|||||||
var rectangle = listView.GetItemRect(i);
|
var rectangle = listView.GetItemRect(i);
|
||||||
if (rectangle.Contains(e.Location)) {
|
if (rectangle.Contains(e.Location)) {
|
||||||
var selectedClient = listView.SelectedItems[0].Text;
|
var selectedClient = listView.SelectedItems[0].Text;
|
||||||
|
|
||||||
if (selectedClient == Properties.str.strSettings) {
|
if (selectedClient == Properties.str.strSettings) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
MessageBox.Show(selectedClient, Properties.str.strInfo, MessageBoxButtons.OK,MessageBoxIcon.Information);
|
MessageBox.Show(selectedClient, Properties.str.strInfo, MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
#endif
|
#endif
|
||||||
var frmSettings = new FormSettings();
|
var frmSettings = new FormSettings();
|
||||||
frmSettings.ShowDialog();
|
frmSettings.ShowDialog();
|
||||||
} else if (selectedClient == Properties.str.strEditConfigurations) {
|
} else if (selectedClient == Properties.str.strEditConfigurations) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
MessageBox.Show(selectedClient, Properties.str.strInfo, MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBox.Show(selectedClient, Properties.str.strInfo, MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
#endif
|
#endif
|
||||||
var frmSettings = new FormSettings();
|
var frmSettings = new FormSettings();
|
||||||
frmSettings.ShowDialog();
|
frmSettings.ShowDialog();
|
||||||
} else if (selectedClient == Properties.str.strGitHubLink) {
|
} else if (selectedClient == Properties.str.strGitHubLink) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
MessageBox.Show(selectedClient, Properties.str.strInfo, MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBox.Show(selectedClient, Properties.str.strInfo, MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
#endif
|
#endif
|
||||||
Process.Start("https://github.com/EpicMorg/UniversalValveToolbox");
|
Process.Start("https://github.com/EpicMorg/UniversalValveToolbox");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
2000
src/UniversalValveToolbox/forms/FormSettings.resx
Normal file
2000
src/UniversalValveToolbox/forms/FormSettings.resx
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user