Exemplo n.º 1
0
 void AddModelVariablesToBindingSource(ModelSelectedEventArgs args)
 {
     this.bindingSource1.Clear();
     foreach (Variable toAdd in args.SelectedModel) {
         this.AddVariable(toAdd);
     }
 }
Exemplo n.º 2
0
 void AddModelVariablesToBindingSource(ModelSelectedEventArgs args)
 {
     this.bindingSource1.Clear();
     foreach (Variable toAdd in args.SelectedModel)
     {
         this.AddVariable(toAdd);
     }
 }
Exemplo n.º 3
0
        void LoadModel(ModelSelectedEventArgs args)
        {
            ModelMetaClass selectedModel = args.SelectedModel;

            if (!selectedModel.IsLoaded)
            {
                args.SelectedModel.Load();
            }
        }
 public void ModelSelected(object sender, ModelSelectedEventArgs args)
 {
     this.FileName.Text = args.SelectedModel.ModelName;
     this.FullPath.Text = args.SelectedModel.FileName;
     this.VariableCount.Text = string.Concat(args.SelectedModel.Variables.Count.ToString(), " Variables");
     this.Replications.Text = string.Concat(args.SelectedModel.Replications.ToString(), " Replications");
     this.RunLength.Text = string.Concat("Run length: ", args.SelectedModel.RunLength.ToString());
     //this.pictureType.Image =
 }
 public void ModelSelected(object sender, ModelSelectedEventArgs args)
 {
     this.FileName.Text      = args.SelectedModel.ModelName;
     this.FullPath.Text      = args.SelectedModel.FileName;
     this.VariableCount.Text = string.Concat(args.SelectedModel.Variables.Count.ToString(), " Variables");
     this.Replications.Text  = string.Concat(args.SelectedModel.Replications.ToString(), " Replications");
     this.RunLength.Text     = string.Concat("Run length: ", args.SelectedModel.RunLength.ToString());
     //this.pictureType.Image =
 }
Exemplo n.º 6
0
 public void ModelSelected(object sender, ModelSelectedEventArgs args)
 {
     LoadModel(args);
     AddModelVariablesToBindingSource(args);
 }
Exemplo n.º 7
0
 public void ModelRemoved(object sender, ModelSelectedEventArgs args)
 {
     var selected = (Scenario)this.bindingSource1[this.dataGridView1.CurrentRow.Index];
     selected.RemoveModel(args.SelectedModel);
 }
Exemplo n.º 8
0
        public void ModelRemoved(object sender, ModelSelectedEventArgs args)
        {
            var selected = (Scenario)this.bindingSource1[this.dataGridView1.CurrentRow.Index];

            selected.RemoveModel(args.SelectedModel);
        }
Exemplo n.º 9
0
 public void ModelSelected(object sender, ModelSelectedEventArgs args)
 {
     LoadModel(args);
     AddModelVariablesToBindingSource(args);
 }
Exemplo n.º 10
0
 void LoadModel(ModelSelectedEventArgs args)
 {
     ModelMetaClass selectedModel = args.SelectedModel;
     if (!selectedModel.IsLoaded)
         args.SelectedModel.Load();
 }