Esempio n. 1
0
 private void button_Search_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrWhiteSpace(this.textBox_BlockOrName.Text))
     {
         this.queryCondition = null;
     }
     else
     {
         this.queryCondition             = new ProjectQueryCondition();
         this.queryCondition.blockOrName = this.textBox_BlockOrName.Text;
     }
     this.dataGridView.queryCondition = this.queryCondition;
     this.dataGridView.RefreshGrid();
 }
Esempio n. 2
0
 public MainWindow()
 {
     this.queryCondition = null;
     InitializeComponent();
     //this.filePath = "F:\\Personal\\lhl\\input\\project.accdb";
     try
     {
         //this.filePath = PathUtils.getAbstractPath("project.dat");
         //this.initConnection();
         this.ConfigDataGridView();
         //this.dataGridView.RefreshGrid();
     }
     catch (Exception ex)
     {
         MyMessageBox msgBox = new MyMessageBox("Open windows error!", ex, MyConstants.BOX_TYPE_ERROR);
         msgBox.ShowDialog(this);
     }
 }