Exemplo n.º 1
0
        /// <summary>
        /// Shows the dialog modally under the given owner, and returns the user's selection (RESET, RESET_AND_DELETE, or CANCEL).
        /// </summary>
        /// <param name="owner">Shows this form as a modal dialog with the specified owner.</param>
        /// <param name="hasExistingFiles">Are there existing (modified) files selected?</param>
        /// <param name="hasNewFiles">Are there new (untracked) files selected?</param>
        public static ResultType ShowResetDialog(IWin32Window owner, bool hasExistingFiles, bool hasNewFiles)
        {
            FormResetChanges form = new FormResetChanges(hasExistingFiles, hasNewFiles);

            form.ShowDialog(owner);
            return(form.Result);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Shows the dialog modally under the given owner, and returns the user's selection (RESET, RESET_AND_DELETE, or CANCEL).
 /// </summary>
 /// <param name="owner">Shows this form as a modal dialog with the specified owner.</param>
 /// <param name="hasExistingFiles">Are there existing (modified) files selected?</param>
 /// <param name="hasNewFiles">Are there new (untracked) files selected?</param>
 public static ResultType ShowResetDialog(IWin32Window owner, bool hasExistingFiles, bool hasNewFiles)
 {
     using (FormResetChanges form = new FormResetChanges(hasExistingFiles, hasNewFiles))
     {
         form.ShowDialog(owner);
         return form.Result;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Shows the dialog modally under the given owner, and returns the user's selection (RESET, RESET_AND_DELETE, or CANCEL).
 /// </summary>
 /// <param name="owner">Shows this form as a modal dialog with the specified owner.</param>
 /// <param name="hasExistingFiles">Are there existing (modified) files selected?</param>
 /// <param name="hasNewFiles">Are there new (untracked) files selected?</param>
 public static ActionEnum ShowResetDialog(IWin32Window owner, bool hasExistingFiles, bool hasNewFiles)
 {
     using (FormResetChanges form = new FormResetChanges(hasExistingFiles, hasNewFiles))
     {
         form.ShowDialog(owner);
         return form.SelectedAction;
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Shows the dialog modally under the given owner, and returns the user's selection (RESET, RESET_AND_DELETE, or CANCEL).
 /// </summary>
 /// <param name="owner">Shows this form as a modal dialog with the specified owner.</param>
 /// <param name="hasExistingFiles">Are there existing (modified) files selected?</param>
 /// <param name="hasNewFiles">Are there new (untracked) files selected?</param>
 public static ActionEnum ShowResetDialog(IWin32Window owner, bool hasExistingFiles, bool hasNewFiles)
 {
     using (FormResetChanges form = new FormResetChanges(hasExistingFiles, hasNewFiles))
     {
         form.ShowDialog(owner);
         return(form.SelectedAction);
     }
 }