public override void SetValue(object component, object value)
 {
     if (_property is Variable)
     {
         (_property as Variable).SetValue(Program.Document.Dashboard.Compiler, (string)value);
         DashboardView.Instance().Refresh();
     }
 }
Exemple #2
0
 private void OnCloseMenuItem(object sender, EventArgs e)
 {
     //Document = null;
     DashboardView.Instance( ).Hide( );
     SequenceView.Instance( ).Hide( );
     SignalView.Instance( ).Hide( );
     if (Program.Document != null)
     {
         Program.Document.Close( );
     }
     Program.Document = null;
     SetControls( );
 }
 private void okButton_Click(object sender, EventArgs e)
 {
     OnSaveGlobalVariables(sender, e);
     foreach (Variable variable in Document.Dashboard.EnumerableVariables)
     {
         if (variable is GlobalVariable || variable is LocalVariable)
         {
             continue;
         }
         variable.CopyData(_variables[variable.Name]);
     }
     Document.Dashboard.SetLocalVariables(localSource);
     Document.Dashboard.SetGlobalVariables(globalSource);
     DashboardView.Instance( ).Refresh( );
 }
Exemple #4
0
 private void OnDashboardMenuItem(object sender, EventArgs e)
 {
     DashboardView.Instance().Show();
 }