private void language_combobox_selection_changed(object sender, SelectionChangedEventArgs e)
        {
            ComboBox languageComboBox = (ComboBox)sender;
            Label    locLabel         = (Label)languageComboBox.Tag;

            locLabel.Content = "LOC: " + CalculateFP.CalculateLOC((string)languageComboBox.SelectedItem).ToString();
        }
        private void Next_Button_Click(object sender, RoutedEventArgs e)
        {
            CalculateFP.CalculateUFP(data);
            // TODO: remove Message Box
            MessageBox.Show("UFP = " + CalculateFP.UFP.ToString(), "UFP Result",
                            MessageBoxButton.OK, MessageBoxImage.Information);
            MainWindow mainWindow = FrontEndHelper.GetMainWindow();

            if (mainWindow.CurrentCanvas != null)
            {
                mainWindow.CurrentCanvas.Hide();
            }
            mainWindow.InitializeTCFCanvas();
        }
예제 #3
0
        private void Calculate_Button_Click(object sender, RoutedEventArgs e)
        {
            Button          btn   = (Button)sender;
            List <ComboBox> boxes = (List <ComboBox>)btn.Tag;
            List <string>   data  = new List <string>();

            foreach (var combobox in boxes)
            {
                data.Add(combobox.Text);
            }
            CalculateFP.CalculateTCF(data);
            CalculateFP.CalculateFPValue();
            MainWindow mainWindow = FrontEndHelper.GetMainWindow();

            if (mainWindow.CurrentCanvas != null)
            {
                mainWindow.CurrentCanvas.Hide();
            }
            mainWindow.InitializeResultCanvas();
        }
예제 #4
0
 private MainWindowCanvas(Canvas canvas) : base(canvas)
 {
     CalculateFP.Initialize();
 }