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); }
public static string GetFolderPath(Generator g, EtoSpecialFolder folder) { var handler = g.CreateControl<IEtoEnvironment>(); return handler.GetFolderPath(folder); }