Beispiel #1
0
        private void simpleButton4_Click(object sender, EventArgs e)
        {
            frmAutoLoggingSettings autologsettings = new frmAutoLoggingSettings();

            autologsettings.AutoLoggingEnabled = m_autoLoggingEnabled;
            autologsettings.TriggerStartSymbol = m_autoLogTriggerStartSymbol;
            autologsettings.TriggerStopSymbol  = m_autoLogTriggerStopSymbol;
            autologsettings.TriggerStartValue  = m_autoLogStartValue;
            autologsettings.TriggerStopValue   = m_autoLogStopValue;
            autologsettings.TriggerStartSign   = (AutoStartSign)m_autoLogStartSign;
            autologsettings.TriggerStopSign    = (AutoStartSign)m_autoLogStopSign;
            autologsettings.Symbols            = m_symbols;
            if (autologsettings.ShowDialog() == DialogResult.OK)
            {
                m_autoLoggingEnabled        = autologsettings.AutoLoggingEnabled;
                m_autoLogTriggerStartSymbol = autologsettings.TriggerStartSymbol;
                m_autoLogTriggerStopSymbol  = autologsettings.TriggerStopSymbol;
                m_autoLogStartValue         = autologsettings.TriggerStartValue;
                m_autoLogStopValue          = autologsettings.TriggerStopValue;
                m_autoLogStartSign          = (int)autologsettings.TriggerStartSign;
                m_autoLogStopSign           = (int)autologsettings.TriggerStopSign;
            }
            DialogResult = DialogResult.None;
        }
Beispiel #2
0
 private void simpleButton4_Click(object sender, EventArgs e)
 {
     frmAutoLoggingSettings autologsettings = new frmAutoLoggingSettings();
     autologsettings.AutoLoggingEnabled = m_autoLoggingEnabled;
     autologsettings.TriggerStartSymbol = m_autoLogTriggerStartSymbol;
     autologsettings.TriggerStopSymbol = m_autoLogTriggerStopSymbol;
     autologsettings.TriggerStartValue = m_autoLogStartValue;
     autologsettings.TriggerStopValue = m_autoLogStopValue;
     autologsettings.TriggerStartSign = (AutoStartSign)m_autoLogStartSign;
     autologsettings.TriggerStopSign = (AutoStartSign)m_autoLogStopSign;
     autologsettings.Symbols = m_symbols;
     if (autologsettings.ShowDialog() == DialogResult.OK)
     {
         m_autoLoggingEnabled = autologsettings.AutoLoggingEnabled;
         m_autoLogTriggerStartSymbol = autologsettings.TriggerStartSymbol;
         m_autoLogTriggerStopSymbol = autologsettings.TriggerStopSymbol;
         m_autoLogStartValue = autologsettings.TriggerStartValue;
         m_autoLogStopValue = autologsettings.TriggerStopValue;
         m_autoLogStartSign = (int)autologsettings.TriggerStartSign;
         m_autoLogStopSign = (int)autologsettings.TriggerStopSign;
     }
     DialogResult = DialogResult.None;
 }