コード例 #1
0
 /// <summary>
 /// constructor for already existing mutations.
 /// </summary>
 /// <param name="mut">Mutation that is loaded in this form</param>
 public MutationForm(Mutation mut)
 {
     InitializeComponent();
     this.buttonAdd.Text = "Change";
     my_mutation         = mut;
     Init();
     try
     {
         this.textBoxName.Text = mut.name;
         this.textBoxCell.Text = mut.cell_type;
         this.textBoxProb.Text = mut.probability;
         this.checkRadioButton(mut.priority);
     }catch (Exception e)
     {
         this.DialogResult = DialogResult.Abort;
     }
 }
コード例 #2
0
 /// <summary>
 /// default consturctor
 /// </summary>
 public MutationForm()
 {
     InitializeComponent();
     my_mutation = new Mutation();
     Init();
 }