Esempio n. 1
0
 private void ReplaceWriter(SharedVariable var, string oldWriter, string newWriter)
 {
     if ((var == null) || (newWriter == null))
     {
         return;
     }
     if (oldWriter != null)
     {
         var.AllowedWriters.Remove(oldWriter);
     }
     var.AllowedWriters.Remove(newWriter);
 }
Esempio n. 2
0
        private void SelectVariable(SharedVariable sharedVar)
        {
            if (sharedVar == null)
            {
                dgvSharedVariables.Enabled   = false;
                pgVariableProperties.Enabled = false;
                return;
            }

            if (this.selectedVar == sharedVar)
            {
                return;
            }
            this.selectedVar             = sharedVar;
            pgVariableProperties.Enabled = true;
            ClearVariable();
            FillVariableData();
            pgVariableProperties.Focus();
        }