コード例 #1
0
 static void Main(string[] args)
 {
     new Program(DataClass.Deserialize(), new _4lab(), new _5lab());
 }
コード例 #2
0
 public Program(DataClass dc, _4lab FLab, _5lab FFLab)
 {
     MainUI(dc, FLab, FFLab);
 }
コード例 #3
0
        private void _4lab_UI(_4lab FLab, DataClass dc)
        {
            Console.WriteLine("What metrics?");
            Console.WriteLine("1.  NOP");
            Console.WriteLine("2.  NOM");
            Console.WriteLine("3.  NOC");
            Console.WriteLine("4.  CALL");
            Console.WriteLine("5.  NDD");
            Console.WriteLine("6.  WMC");
            Console.WriteLine("7.  NOAV");
            Console.WriteLine("8.  NOPA");
            Console.WriteLine("9.  TCC");
            Console.WriteLine("10. PNAS");
            int i = int.Parse(Console.ReadLine());

            do
            {
                switch (i)
                {
                case 1:
                    FLab.UI(dc.NOP);
                    break;

                case 2:
                    FLab.UI(dc.NOM);
                    break;

                case 3:
                    FLab.UI(dc.NOC);
                    break;

                case 4:
                    FLab.UI(dc.CALL);
                    break;

                case 5:
                    FLab.UI(dc.NDD);
                    break;

                case 6:
                    FLab.UI(dc.WMC);
                    break;

                case 7:
                    FLab.UI(dc.NOAV);
                    break;

                case 8:
                    FLab.UI(dc.NOPA);
                    break;

                case 9:
                    FLab.UI(dc.TCC);
                    break;

                case 10:
                    FLab.UI(dc.PNAS);
                    break;

                default:
                    break;
                }
            }while (i == 0);
        }