/// <summary> /// Initializes an new instance of the DialogCommon class. Create this /// class in the constructor of the form. /// </summary> /// <param name="form">The dialog form </param> public DialogCommon(Form form) { _form = form; _form.ShowInTaskbar = false; _panelName = String.Empty; _dialogPanel = (IDialogPanel)_form; _syncLock = new SyncLock(); }
public DefaultDialogPanelDescriptor(string id, string label) { this.id = string.Empty; this.label = string.Empty; this.dialogPanelDescriptors = null; this.dialogPanel = null; this.id = id; this.label = label; }
/// <summary> /// 对Dialog展示的编辑框进行平滑展示的封装(打开时隐藏内容,打开后显示,关闭前隐藏内容) /// </summary> /// <param name="dialogPanel"></param> /// <param name="dialogHostTag"></param> /// <returns></returns> public async static Task <bool> SmothShow(this IDialogPanel dialogPanel, string dialogHostTag = "tabContentDialogHost") { var result = await DialogHost.Show(dialogPanel, dialogHostTag, new DialogOpenedEventHandler((obj, args) => { dialogPanel.SetPanelVisible(true); }), new DialogClosingEventHandler((obj, args) => { dialogPanel.SetPanelVisible(false); })); return((bool)result); }
public DefaultDialogPanelDescriptor(string id, string label, IDialogPanel dialogPanel) : this(id, label) { this.dialogPanel = dialogPanel; }