public AddFilter ( string name, string pattern ) : void | ||
name | string | |
pattern | string | |
Результат | void |
// Wizard Page 2 protected void BtnIcon_Clicked(object sender, EventArgs e) { var dialog = new FileDialog(this, FileChooserAction.Open); dialog.AddFilter("Icon files (*.ico)", "*.ico"); dialog.AddFilter("All Files (*.*)", "*.*"); if (dialog.Run() == ResponseType.Ok) { try { generatorData.Icon = new System.Drawing.Icon(dialog.FileName); imageIcon.Pixbuf = (new Gdk.Pixbuf(dialog.FileName)).ScaleSimple(32, 32, Gdk.InterpType.Bilinear); } catch { } } }
// Wizard Page 2 protected void BtnIcon_Clicked (object sender, EventArgs e) { var dialog = new FileDialog(this, FileChooserAction.Open); dialog.AddFilter("Icon files (*.ico)", "*.ico"); dialog.AddFilter("All Files (*.*)", "*.*"); if (dialog.Run() == ResponseType.Ok) { try { generatorData.Icon = new System.Drawing.Icon(dialog.FileName); imageIcon.Pixbuf = (new Gdk.Pixbuf(dialog.FileName)).ScaleSimple(32, 32, Gdk.InterpType.Bilinear); } catch { } } }