Example #1
0
		public static DialogResult Show(Generator g, Control parent, string text, string caption = null, MessageBoxType type = MessageBoxType.Information)
		{
			var mb = g.CreateControl<IMessageBox>();
			mb.Text = text;
			mb.Caption = caption;
			mb.Type = type;
			return mb.ShowDialog(parent);
		}
Example #2
0
 public static string GetFolderPath(Generator g, EtoSpecialFolder folder)
 {
     var handler = g.CreateControl<IEtoEnvironment>();
     return handler.GetFolderPath(folder);
 }