Browse Source

Удалены хинты, пофиксил отображение infoLabel

master
Никита 6 years ago
parent
commit
7acbce9b81
  1. 22
      fileFinder/HintModel.cs
  2. 1
      fileFinder/MainForm.Designer.cs
  3. 17
      fileFinder/MainForm.cs
  4. 1
      fileFinder/fileFinder.csproj

22
fileFinder/HintModel.cs

@ -1,22 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace fileFinder
{
class HintModel
{
public HintModel ()
{
isDirectoryHintActive = true;
isNameQueryHintActive = true;
isInnerQueryHintActive = true;
}
public bool isDirectoryHintActive { get; set; }
public bool isNameQueryHintActive { get; set; }
public bool isInnerQueryHintActive { get; set; }
}
}

1
fileFinder/MainForm.Designer.cs

@ -76,7 +76,6 @@
this.fileUrlTextBox.TabIndex = 1;
this.fileUrlTextBox.Text = "C:\\Users\\itsmy_000\\Desktop\\a\\";
this.fileUrlTextBox.TextChanged += new System.EventHandler(this.fileUrlTextBox_TextChanged);
this.fileUrlTextBox.Enter += new System.EventHandler(this.curDirTextBox_Enter);
//
// splitContainer
//

17
fileFinder/MainForm.cs

@ -8,7 +8,6 @@ namespace fileFinder
{
public partial class MainForm : Form
{
HintModel hints = new HintModel();
TaskController mainController = new TaskController();
SearchQueryModel searchQueryModel;
System.Timers.Timer updateInfoTimer = new System.Timers.Timer(1000);
@ -59,30 +58,20 @@ namespace fileFinder
if (result == DialogResult.OK && !String.IsNullOrWhiteSpace(dialog.SelectedPath))
{
fileUrlTextBox.Text = dialog.SelectedPath;
hints.isDirectoryHintActive = false;
}
}
}
private void curDirTextBox_Enter(object sender, EventArgs e)
{
//if (hints.isDirectoryHintActive)
//{
// hints.isDirectoryHintActive = false;
// curDirTextBox.Text = "";
//}
}
private void reportProgress(object sender, ProgressReportModel report)
{
switch (mainController.state)
{
case TaskState.Work:
updateInfoLabel(report.currentFileUrl, report);
break;
case TaskState.Pause:
updateResultViewer(report.currentTreeNode);
break;
default:
updateInfoLabel(report.currentFileUrl, report);
break;
}
}

1
fileFinder/fileFinder.csproj

@ -45,7 +45,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="HintModel.cs" />
<Compile Include="MainForm.cs">
<SubType>Form</SubType>
</Compile>

Loading…
Cancel
Save