DialogsExtensionsOnDialogsToPath Field |
Namespace: SOWIWeb.Foundation
Adds event handler for a custom view path setting
//* add event handler for a custom view path setting * SOWIWeb.Foundation.DialogsExtensions.OnFormsToPath += this.DialogsToPath;
/// <summary> /// Custom Dialog default view path /// </summary> /// <param name="sender">null object because it's static declaration</param> /// <param name="e">Has view name and view path</param> private void DialogsToPath(object sender, SOWIWeb.Foundation.EventArgsViewToPathEnum<SOWIWeb.Foundation.Dialogs> e) { switch (e.View) { case Forms.Import: e.Path = "~/Views/MyDialog/Import"; break; default: break; } }