コード例 #1
0
ファイル: IterationEdit.cs プロジェクト: nyulacska/tupux
        private void btnFactores_Click(object sender, EventArgs e)
        {
            FactorList factorList = new FactorList(this.Iteration.Factors);

            factorList.ShowDialog();
            if (factorList.Change)
            {
                this.Iteration.Factors = factorList.Factors;
                this.Iteration.EAF     = factorList.Total;
                this.EAFTextBox.Text   = factorList.Total.ToString();
            }
        }
コード例 #2
0
ファイル: PhaseEdit.cs プロジェクト: nyulacska/tupux
 private void uMLIterationDataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
     {
         if (this.uMLIterationDataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex] is DataGridViewButtonCell)
         {
             UMLIteration iteration  = (UMLIteration)this.uMLIterationDataGridView.Rows[e.RowIndex].DataBoundItem;
             FactorList   factorList = new FactorList(iteration.Factors);
             factorList.ShowDialog();
             if (factorList.Change)
             {
                 iteration.Factors = factorList.Factors;
                 iteration.EAF     = factorList.Total;
                 iteration.SaveFactors();
             }
         }
     }
 }
コード例 #3
0
ファイル: PhaseEdit.cs プロジェクト: emanuelshv/tupux
 private void uMLIterationDataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
     {
         if (this.uMLIterationDataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex] is DataGridViewButtonCell)
         {
             UMLIteration iteration = (UMLIteration)this.uMLIterationDataGridView.Rows[e.RowIndex].DataBoundItem;
             FactorList factorList = new FactorList(iteration.Factors);
             factorList.ShowDialog();
             if (factorList.Change)
             {
                 iteration.Factors = factorList.Factors;
                 iteration.EAF = factorList.Total;
                 iteration.SaveFactors();
             }
         }
     }
 }
コード例 #4
0
ファイル: IterationEdit.cs プロジェクト: emanuelshv/tupux
 private void btnFactores_Click(object sender, EventArgs e)
 {
     FactorList factorList = new FactorList(this.Iteration.Factors);
     factorList.ShowDialog();
     if (factorList.Change)
     {
         this.Iteration.Factors = factorList.Factors;
         this.Iteration.EAF = factorList.Total;
         this.EAFTextBox.Text =  factorList.Total.ToString();
     }
 }