Files
mono/mcs/class/System.Windows.Forms/Gtk/SaveFileDialog.cs
T
Joel Basson 802417f479 Thu Jan 16 19:20:00 GMT+2 2003 Joel Basson <[email protected]>
* Applied patch from Alberto Fernandez with the following changes...
	Finished ProgressBar (Events?)
	Finished HScrollBar VScrollBar and ScrollBar
	Finished FolderBrowserDialog
	Base ComboBox
	Added DrawMode.cs
	Added ComboBoxStyle.cs
	Added Appearance.cs
	Added CheckState.cs
	Added TabAlignment
	Added TabAppearance.cs
	Added TabDrawMode.cs
	Added TabSizeMode.cs
	Added Panel.cs
	Added TabPage.cs
	Added TabControl.cs
	Added Cursors.cs
	Added MessageBoxDefaultButton.cs
	Added MessageBoxIcon.cs
	Added MessageBoxOptions.cs
	Changes in MessageBoxButtons.cs (Added values)
	Changes in MessageBox (Completed all functions, added return values).
	"Finished" CheckBox.cs
	"Finished" ComboBox.cs
	"Finished" RadioButton
	"Finished" GroupBox
	"Finished" Panel
	Changes in Form to work with new RadioButton.
	Fix double Click reported on MenuItems.
	"Finished" Application

svn path=/trunk/mcs/; revision=22123
2004-01-15 17:19:30 +00:00

78 lines
1.3 KiB
C#

//
// System.Windows.Forms.SaveFileDialog.cs
//
// Author:
// stubbed out by Daniel Carrera ([email protected])
// Dennis Hayes ([email protected])
//
// (C) 2002 Ximian, Inc
//
using System.ComponentModel;
using System.IO;
namespace System.Windows.Forms {
// <summary>
// </summary>
public sealed class SaveFileDialog : FileDialog {
private bool createPrompt;
private bool overwritePrompt;
//
// --- Constructor
//
[MonoTODO]
public SaveFileDialog(){
Reset();
}
//
// --- Public Properties
//
// pregunta si queremos crear un archivo nuevo.
[MonoTODO]
public bool CreatePrompt {
get {return createPrompt;}
set {createPrompt = value;}
}
// pregunta si queremos sobreescribir.
[MonoTODO]
public bool OverwritePrompt {
get {return overwritePrompt;}
set {overwritePrompt = value;}
}
//
// --- Public Methods
//
[MonoTODO]
public Stream OpenFile(){
return File.OpenWrite(FileName);
}
[MonoTODO]
public override void Reset(){
base.Reset();
CheckFileExists = false;
}
public override string ToString(){
return String.Format (
"System.Windows.Forms.SaveFileDialog: Title: {0}, FileName: {1}",
this.Title,
this.FileName);
}
[MonoTODO]
internal override Gtk.Dialog CreateDialog (){
return new Gtk.FileSelection (String.Empty);
}
}
}