Esempio n. 1
0
        private void MaterialsListView_Click(object sender, EventArgs e)
        {
            var tfrTableIndex = MaterialsListView.SelectedItems.Count == 0
                                ? null
                                : MaterialsListView.SelectedItems[0].Tag as int?;

            if (!tfrTableIndex.HasValue)
            {
                return;
            }

            var tfrTable = m_deviceConfiguration.Advanced.TFRTables[tfrTableIndex.Value];

            MaterialsListView.SelectedItems.Clear();
            using (var editor = new TFRProfileWindow(tfrTable))
            {
                if (editor.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                UpdateTFRCurveNames();
                UpdateTFRCurvePreview(tfrTableIndex.Value);
            }
        }
Esempio n. 2
0
        private void TFRCurveEditButton_Click(object sender, EventArgs e)
        {
            var curveIndex = (int)MaterialComboBox.GetSelectedItem <ArcticFoxConfiguration.Material>() - 5;
            var tfrTable   = m_configuration.Advanced.TFRTables[curveIndex];

            using (var editor = new TFRProfileWindow(tfrTable))
            {
                if (editor.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                m_host.UpdateTFRCurveNames();
                m_host.UpdateTFRCurvePreview(curveIndex);
            }
        }