static void Main() { userService = new UserService(); messageService = new MessageService(); friendService = new FriendService(userService); mainView = new MainView(); registrationView = new RegistrationView(userService); authenticationView = new AuthenticationView(userService); userMenuView = new UserMenuView(); userInfoView = new UserInfoView(); userDataUpdateView = new UserDataUpdateView(userService); messageSendingView = new MessageSendingView(messageService, userService); userIncomingMessageView = new UserIncomingMessageView(); userOutcomingMessageView = new UserOutcomingMessageView(); friendManageView = new FriendsManageView(); addFriendView = new AddFriendView(userService, friendService); showFriendView = new ShowFriendsView(friendService); while (true) { mainView.Show(); } }
static void Main(string[] args) { Console.OutputEncoding = Encoding.UTF8; Console.InputEncoding = Encoding.Unicode; userService = new UserService(); messageService = new MessageService(); friendService = new FriendService(); mainView = new MainView(); registrationView = new RegistrationView(userService); authenticationView = new AuthenticationView(userService); userMenuView = new UserMenuView(userService); userInfoView = new UserInfoView(); userDataUpdateView = new UserDataUpdateView(userService); messageSendingView = new MessageSendingView(messageService, userService); userIncomingMessageView = new UserIncomingMessageView(); userOutcomingMessageView = new UserOutcomingMessageView(); friendCreateNewView = new FriendCreateView(friendService); while (true) { mainView.Show(); } }
static void Main(string[] args) { userService = new UserService(); messageService = new MessageService(); mainView = new MainView(); registrationView = new RegistrationView(userService); authenticationView = new AuthenticationView(userService); userMenuView = new UserMenuView(userService); userInfoView = new UserInfoView(); userDataUpdateView = new UserDataUpdateView(userService); messageSendingView = new MessageSendingView(messageService, userService); userIncomingMessageView = new UserIncomingMessageView(); userOutcomingMessageView = new UserOutcomingMessageView(); while (true) { mainView.Show(); } }