Пример #1
0
        private void buttonAddAnalyzeAreaSet_Click(object sender, EventArgs e)
        {
            EditAnalyzeAreaSet editAnalyzeAreaSet = new EditAnalyzeAreaSet(
                this._Project,
                scrollZ.Value,
                scrollT.Value
                );

            editAnalyzeAreaSet.ShowDialog();

            if (editAnalyzeAreaSet.CreatedAnalyzeAreaSet)
            {
                this._IsDirty = true;

                AnalyzeAreaSet analyzeAreaSet = editAnalyzeAreaSet.AnalyzeAreaSet;
                this._Project.AddAnalyzeAreaSet(analyzeAreaSet);
                this._Render();
            }

            editAnalyzeAreaSet.Dispose();
        }
Пример #2
0
        private void buttonEditAnalyzeAreaSet_Click(object sender, EventArgs e)
        {
            if (dataAnalyzeAreaSets.SelectedRows.Count > 0)
            {
                AnalyzeAreaSet analyzeAreaSet = this._GetCurrentAnalyzeAreaSet();

                EditAnalyzeAreaSet editAnalyzeAreaSet = new EditAnalyzeAreaSet(
                    analyzeAreaSet,
                    this._Project,
                    scrollZ.Value,
                    scrollT.Value
                    );
                editAnalyzeAreaSet.ShowDialog();

                if (editAnalyzeAreaSet.UpdatedAnalyzeAreaSet)
                {
                    this._IsDirty = true;

                    this._Render();
                }

                editAnalyzeAreaSet.Dispose();
            }
        }