public void CreativeListener(TextPaper textPaper) { if (textPaper.GetType() == typeof(Jornal)) { StorageManager.JornalStorage.AddItem(textPaper as Jornal); } }
public void CreativeListener(TextPaper textPaper) { if (textPaper.GetType() == typeof(Book)) { StorageManager.BookStorage.AddItem(textPaper as Book); } }
public void CreativeListener(TextPaper textPaper) { if (textPaper.GetType() == typeof(NewsPaper)) { StorageManager.NewsPaperStorage.AddItem(textPaper as NewsPaper); } }
public static string ToWritebleTxt(TextPaper textPaper) { if (textPaper.GetType() == typeof(Book)) { return(ToWritebleTxt(textPaper as Book)); } if (textPaper.GetType() == typeof(Jornal)) { return(ToWritebleTxt(textPaper as Jornal)); } if (textPaper.GetType() == typeof(NewsPaper)) { return(ToWritebleTxt(textPaper as NewsPaper)); } return(""); }
public static void Add(TextPaper item) { if (item.GetType() == typeof(Book)) { BookStorage.AddItem(item as Book); return; } if (item.GetType() == typeof(Jornal)) { JornalStorage.AddItem(item as Jornal); return; } if (item.GetType() == typeof(NewsPaper)) { NewsPaperStorage.AddItem(item as NewsPaper); return; } }
public void ActivateCreateEvent(TextPaper textPaper) { CreateEvent(textPaper); }