Remove unused save dialog and use the proper dialog for error message

This commit is contained in:
baldurk
2017-06-02 17:56:39 +01:00
parent 0c3dec3b67
commit 922263df83
3 changed files with 1 additions and 12 deletions
-8
View File
@@ -49,7 +49,6 @@
WeifenLuo.WinFormsUI.Docking.TabGradient tabGradient6 = new WeifenLuo.WinFormsUI.Docking.TabGradient();
WeifenLuo.WinFormsUI.Docking.TabGradient tabGradient7 = new WeifenLuo.WinFormsUI.Docking.TabGradient();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TextureViewer));
this.saveTextureDialog = new System.Windows.Forms.SaveFileDialog();
this.rightclickMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.showDisabled = new System.Windows.Forms.ToolStripMenuItem();
this.showEmpty = new System.Windows.Forms.ToolStripMenuItem();
@@ -203,12 +202,6 @@
toolStripLabel1.Size = new System.Drawing.Size(42, 22);
toolStripLabel1.Text = "Actions";
//
// saveTextureDialog
//
this.saveTextureDialog.DefaultExt = "dds";
this.saveTextureDialog.Filter = "DDS Files (*.dds)|*.dds";
this.saveTextureDialog.Title = "Save Texture As";
//
// rightclickMenu
//
this.rightclickMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -1399,7 +1392,6 @@
#endregion
private System.Windows.Forms.SaveFileDialog saveTextureDialog;
private System.Windows.Forms.ContextMenuStrip rightclickMenu;
private System.Windows.Forms.ToolStripMenuItem showDisabled;
private System.Windows.Forms.ToolStripMenuItem showEmpty;
+1 -1
View File
@@ -3700,7 +3700,7 @@ namespace renderdocui.Windows
});
if(!ret)
MessageBox.Show(string.Format("Error saving texture {0}.\n\nCheck diagnostic log in Help menu for more details.", saveTextureDialog.FileName),
MessageBox.Show(string.Format("Error saving texture {0}.\n\nCheck diagnostic log in Help menu for more details.", m_SaveDialog.Filename),
"Error saving texture", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
-3
View File
@@ -129,9 +129,6 @@
<metadata name="toolStripLabel1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="saveTextureDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>136, 17</value>
</metadata>
<metadata name="rightclickMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>412, 17</value>
</metadata>