// <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(); }
/// <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; }
/// <summary> /// Событие при загрузке формы /// </summary> private void MainForm_Load(object sender, EventArgs e) { DataGridFigureTools.CreateTable(_figureList, DataFigureView); }