static void Zadatak3_4() { string filepath = @"file.csv"; VirtualProxyDataset virtualProxyDataset = new VirtualProxyDataset(filepath); DataConsolePrinter dataPrinter = new DataConsolePrinter(); dataPrinter.DisplayItems(virtualProxyDataset); ProtectionProxyDataset protectedProxyDataset = new ProtectionProxyDataset(User.GenerateUser("Mihael")); dataPrinter.DisplayItems(protectedProxyDataset); LoggerProxyDataset loggerProxyDataset = new LoggerProxyDataset(filepath); dataPrinter.DisplayItems(loggerProxyDataset); }
static void Main(string[] args) { string filepath = "proxy.csv"; Dataset dataset = new Dataset(filepath); ProtectionProxyDataset protProxy = new ProtectionProxyDataset(User.GenerateUser("User123")); VirtualProxyDataset virtProxy = new VirtualProxyDataset(filepath); DataConsolePrinter printer = new DataConsolePrinter(); printer.Print(dataset); printer.Print(protProxy); printer.Print(virtProxy); printer.Print(protProxy); printer.Print(protProxy); ReminderNote note1 = new ReminderNote("1. poruka, LighTheme", new LightTheme()); ReminderNote note2 = new ReminderNote("2. poruka, PersonalTheme", new PersonalTheme()); note1.Show(); note2.Show(); }