public bool StartPushDialog(IWin32Window owner, bool pushOnShow) { if (!RequiresValidWorkingDir(owner)) { return(false); } if (!InvokeEvent(owner, PrePush)) { return(true); } using (var form = new FormPush()) { if (pushOnShow) { form.PushAndShowDialogWhenFailed(owner); } else { form.ShowDialog(owner); } } InvokeEvent(owner, PostPush); return(true); }
public bool StartPushDialog(bool pushOnShow) { if (!RequiresValidWorkingDir()) { return(false); } if (!InvokeEvent(PrePush)) { return(true); } var form = new FormPush(); if (pushOnShow) { form.PushAndShowDialogWhenFailed(); } else { form.ShowDialog(); } InvokeEvent(PostPush); return(true); }
public bool StartPushDialog(bool pushOnShow) { if (!InvokeEvent(PrePush)) { return(true); } var form = new FormPush { PushOnShow = pushOnShow }; form.ShowDialog(); InvokeEvent(PostPush); return(true); }
public bool StartPushDialog(bool pushOnShow) { if (!RequiresValidWorkingDir()) { return(false); } if (!InvokeEvent(PrePush)) { return(true); } var form = new FormPush { PushOnShow = pushOnShow }; form.ShowDialog(); InvokeEvent(PostPush); return(true); }
public bool StartPushDialog(IWin32Window owner, bool pushOnShow) { if (!RequiresValidWorkingDir(owner)) return false; if (!InvokeEvent(owner, PrePush)) return true; using (var form = new FormPush(this)) { if (pushOnShow) form.PushAndShowDialogWhenFailed(owner); else form.ShowDialog(owner); } InvokeEvent(owner, PostPush); return true; }
public bool StartPushDialog(bool pushOnShow) { if (!RequiresValidWorkingDir()) return false; if (!InvokeEvent(PrePush)) return true; var form = new FormPush(); if (pushOnShow) form.PushAndShowDialogWhenFailed(); else form.ShowDialog(); InvokeEvent(PostPush); return true; }
public bool StartPushDialog(IWin32Window owner, bool pushOnShow, out bool pushCompleted) { pushCompleted = false; if (!RequiresValidWorkingDir(owner)) return false; if (!InvokeEvent(owner, PrePush)) return true; using (var form = new FormPush(this)) { DialogResult dlgResult; if (pushOnShow) dlgResult = form.PushAndShowDialogWhenFailed(owner); else dlgResult = form.ShowDialog(owner); if (dlgResult == DialogResult.OK) pushCompleted = !form.ErrorOccurred; } InvokeEvent(owner, PostPush); return true; }
public bool StartPushDialog(bool pushOnShow) { if (!InvokeEvent(PrePush)) return true; FormPush form = new FormPush(); form.PushOnShow = pushOnShow; form.ShowDialog(); InvokeEvent(PostPush); return true; }
public bool StartPushDialog(bool pushOnShow) { if (!RequiresValidWorkingDir()) return false; if (!InvokeEvent(PrePush)) return true; var form = new FormPush { PushOnShow = pushOnShow }; form.ShowDialog(); InvokeEvent(PostPush); return true; }