示例#1
0
        static void Main(string[] args)
        {
            Dataset d1 = new Dataset(@"C:\csv.csv");

            Debug(d1);
            Dataset d2 = (Dataset)d1.Clone();

            Debug(d2);

            double[][] matrica = RandomMatrica.GetInstance().CreateMatrica(2, 3);
            Debug(matrica);

            Logger logger = Logger.GetInstance();

            logger.SetPath(@"C:\Users\Korisnik\Desktop\druga godina\dat.txt");
            funkc();
            funkc2();

            ConsoleNotification notification = new ConsoleNotification("Marko", "Danas je kisa", "Ja volim sunce", DateTime.Now, Category.INFO, ConsoleColor.DarkRed);
            NotificationManager manager      = new NotificationManager();

            manager.Display(notification);
        }
示例#2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            ////1. zad
            //string filePath = @"C:\Users\User\source\repos\LV3\LV3\dat.txt";

            //Dataset ds = new Dataset(filePath);
            //ds.Clone();
            //ds.LoadDataFromCSV(filePath);
            //Console.WriteLine(ds.PrintList());

            ////2. zad
            //double[][] matrica = MatricaRandGen.GetInstance().Generator(6, 4);
            //for (int i = 0; i < 6; i++)
            //{
            //    for (int j = 0; j < 4; j++)
            //    {
            //        Console.Write(matrica[i][j].ToString() + "      ");
            //    }
            //    Console.WriteLine();
            //}

            ////3. zad
            //string fileName = "datoteka.txt";

            //Logger obj = new Logger();
            //obj.SetLogger(fileName);
            //Logger.GetInstance().Log("Recenica");



            ////4. zad
            ConsoleNotification cn = new ConsoleNotification("Mihaela", "DOOP", "LV3", DateTime.Now, Category.INFO, ConsoleColor.White);
            NotificationManager nm = new NotificationManager();

            nm.Display(cn);
        }
示例#3
0
        public Prototype Clone()
        {
            ConsoleNotification clone = (ConsoleNotification)this.MemberwiseClone();

            return(clone);
        }