Beispiel #1
0
        public override bool Execute(GitUIEventArgs args)
        {
            using var frm = new FindLargeFilesForm(_sizeLargeFile.ValueOrDefault(Settings), args);
            frm.ShowDialog(args.OwnerForm);

            return(true);
        }
Beispiel #2
0
        public override bool Execute(GitUIBaseEventArgs gitUiCommands)
        {
            using (var frm = new FindLargeFilesForm(_sizeLargeFile.ValueOrDefault(Settings), gitUiCommands))
            {
                frm.ShowDialog(gitUiCommands.OwnerForm);
            }

            return(true);
        }
        public bool Execute(GitUIBaseEventArgs gitUiCommands)
        {
            float threshold;
            if (!float.TryParse(Settings.GetSetting("Find large files bigger than (Mb)"), out threshold))
                threshold = 1;

            using (var frm = new FindLargeFilesForm(threshold, gitUiCommands)) frm.ShowDialog(gitUiCommands.OwnerForm as IWin32Window);
            return true;
        }
        public override bool Execute(GitUIBaseEventArgs gitUiCommands)
        {
            float threshold;

            if (!float.TryParse(Settings.GetSetting("Find large files bigger than (Mb)"), out threshold))
            {
                threshold = 1;
            }

            using (var frm = new FindLargeFilesForm(threshold, gitUiCommands)) frm.ShowDialog(gitUiCommands.OwnerForm as IWin32Window);
            return(true);
        }
 public override bool Execute(GitUIBaseEventArgs gitUiCommands)
 {
     using (var frm = new FindLargeFilesForm(SizeLargeFile[Settings], gitUiCommands))
         frm.ShowDialog(gitUiCommands.OwnerForm);
     return true;
 }
 public override bool Execute(GitUIBaseEventArgs gitUiCommands)
 {
     using (var frm = new FindLargeFilesForm(SizeLargeFile[Settings], gitUiCommands))
         frm.ShowDialog(gitUiCommands.OwnerForm);
     return(true);
 }