示例#1
0
 // <summary>
 /// Обработчик события при сбросе фильтрации
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void DropFilterButton_Click(object sender, EventArgs e)
 {
     DataFigureView.DataSource = null;
     DataGridFigureTools.CreateTable(_figureList, DataFigureView);
     DeleteFugureButton.Enabled = true;
     SearchFigureButton.Enabled = true;
     AddFigureButton.Enabled    = true;
     RandomFigureButton.Enabled = true;
     _listForSearch.Clear();
 }
示例#2
0
 /// <summary>
 /// Обработчик события получения данных из формы поиска
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void AddSearchFigureEvent(object sender, FigureEventArgs e)
 {
     _listForSearch.Add(e.SendingFigure);
     DataGridFigureTools.CreateTable(_listForSearch, DataFigureView);
     DeleteFugureButton.Enabled = false;
     DropFilterButton.Enabled   = true;
     SearchFigureButton.Enabled = false;
     AddFigureButton.Enabled    = false;
     RandomFigureButton.Enabled = false;
 }
示例#3
0
 /// <summary>
 /// Событие при загрузке формы
 /// </summary>
 private void MainForm_Load(object sender, EventArgs e)
 {
     DataGridFigureTools.CreateTable(_figureList, DataFigureView);
 }