mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 06:20:24 +00:00
Fix save button for archive editors
This commit is contained in:
parent
2e55d789ae
commit
1a420f65a3
3 changed files with 14 additions and 14 deletions
|
@ -30,9 +30,9 @@
|
|||
{
|
||||
this.stPanel1 = new Toolbox.Library.Forms.STPanel();
|
||||
this.stPanel2 = new Toolbox.Library.Forms.STPanel();
|
||||
this.saveBtn = new Toolbox.Library.Forms.STButton();
|
||||
this.stLabel1 = new Toolbox.Library.Forms.STLabel();
|
||||
this.stComboBox1 = new Toolbox.Library.Forms.STComboBox();
|
||||
this.saveBtn = new Toolbox.Library.Forms.STButton();
|
||||
this.stPanel2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
|
@ -57,6 +57,17 @@
|
|||
this.stPanel2.Size = new System.Drawing.Size(369, 27);
|
||||
this.stPanel2.TabIndex = 1;
|
||||
//
|
||||
// saveBtn
|
||||
//
|
||||
this.saveBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.saveBtn.Location = new System.Drawing.Point(249, 0);
|
||||
this.saveBtn.Name = "saveBtn";
|
||||
this.saveBtn.Size = new System.Drawing.Size(105, 23);
|
||||
this.saveBtn.TabIndex = 2;
|
||||
this.saveBtn.Text = "Save";
|
||||
this.saveBtn.UseVisualStyleBackColor = false;
|
||||
this.saveBtn.Click += new System.EventHandler(this.saveBtn_Click);
|
||||
//
|
||||
// stLabel1
|
||||
//
|
||||
this.stLabel1.AutoSize = true;
|
||||
|
@ -79,22 +90,12 @@
|
|||
this.stComboBox1.TabIndex = 0;
|
||||
this.stComboBox1.SelectedIndexChanged += new System.EventHandler(this.stComboBox1_SelectedIndexChanged);
|
||||
//
|
||||
// saveBtn
|
||||
//
|
||||
this.saveBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.saveBtn.Location = new System.Drawing.Point(249, 0);
|
||||
this.saveBtn.Name = "saveBtn";
|
||||
this.saveBtn.Size = new System.Drawing.Size(105, 23);
|
||||
this.saveBtn.TabIndex = 2;
|
||||
this.saveBtn.Text = "Save";
|
||||
this.saveBtn.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// ArchiveFilePanel
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.stPanel2);
|
||||
this.Controls.Add(this.stPanel1);
|
||||
this.Controls.Add(this.stPanel2);
|
||||
this.Name = "ArchiveFilePanel";
|
||||
this.Size = new System.Drawing.Size(369, 309);
|
||||
this.stPanel2.ResumeLayout(false);
|
||||
|
|
|
@ -116,7 +116,6 @@ namespace Toolbox.Library.Forms
|
|||
Editor = ActiveEditor;
|
||||
|
||||
((TreeNodeFile)fileFormat).FillEditor(Editor);
|
||||
|
||||
}
|
||||
|
||||
Type objectType = fileFormat.GetType();
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace Toolbox.Library
|
|||
}
|
||||
}
|
||||
|
||||
public virtual UserControl GetEditor() { return new STUserControl(); }
|
||||
public virtual UserControl GetEditor() { return new STUserControl() { Dock = DockStyle.Fill }; }
|
||||
public virtual void FillEditor(UserControl control) { }
|
||||
|
||||
public override void OnClick(TreeView treeview)
|
||||
|
|
Loading…
Reference in a new issue