private void OpenConnectionPage(object sender, ConnectionPageViewModel viewModel) { var page = new ConnectionPage(viewModel); NavigationPage.SetHasBackButton(page, true); MainPage.Navigation.PushAsync(page); }
public MainFrm() { InitializeComponent(); _connected = Connected; _disconnected = Disconnected; _toRemoveList = new List <IDataHandler>(); _dataHandlers = new List <IDataHandler>(); Connection = new HConnection(); Connection.Connected += Connected; Connection.Disconnected += Disconnected; Connection.DataOutgoing += DataOutgoing; Connection.DataIncoming += DataIncoming; AboutPg = new AboutPage(this, AboutTab); ToolboxPg = new ToolboxPage(this, ToolboxTab); InjectionPg = new InjectionPage(this, InjectionTab); ExtensionsPg = new ExtensionsPage(this, ExtensionsTab); ConnectionPg = new ConnectionPage(this, ConnectionTab); PacketLoggerUI = new PacketLoggerFrm(this); AttachDataHandlers(); }
public App() { InitializeComponent(); NavigationHandler handler = new NavigationHandler(); AudioPlayerPageVM audioPlayerPageVM = new AudioPlayerPageVM(); AudioLibPageVM audioLibPageVM = new AudioLibPageVM(handler); ConnectionPageVM connectionPageVM = new ConnectionPageVM(handler); ModesPageVM modesPageVM = new ModesPageVM(); SettingsPageVM settingsPageVM = new SettingsPageVM(); AddSongPageVM addSongPageVM = new AddSongPageVM(handler); MainPageVM mainPageVM = new MainPageVM(handler); AudioPlayerPage audioPlayerPage = new AudioPlayerPage(audioPlayerPageVM); AudioLibPage audioLibPage = new AudioLibPage(audioLibPageVM); ConnectionPage connectionPage = new ConnectionPage(connectionPageVM); ModesPage modesPage = new ModesPage(modesPageVM); SettingsPage settingsPage = new SettingsPage(settingsPageVM); AddSongPage addSongPage = new AddSongPage(addSongPageVM); MainPage mainPage = new MainPage(mainPageVM); ContentPage[] pages = { audioPlayerPage, audioLibPage, connectionPage, modesPage, settingsPage, addSongPage, mainPage }; handler.SetPages(pages); MainPage = new NavigationPage(mainPage); }
public MainFrm() { InitializeComponent(); _connected = Connected; _disconnected = Disconnected; _haltables = new List <IHaltable>(); _receivers = new List <IReceiver>(); GameData = new HGameData(); Connection = new HConnection(); Connection.Connected += Connected; Connection.Disconnected += Disconnected; Connection.DataOutgoing += DataOutgoing; Connection.DataIncoming += DataIncoming; ConnectionPg = new ConnectionPage(this, ConnectionTab); InjectionPg = new InjectionPage(this, InjectionTab); ToolboxPg = new ToolboxPage(this, ToolboxTab); ModulesPg = new ModulesPage(this, ModulesTab); AboutPg = new AboutPage(this, AboutTab); PacketLoggerUI = new PacketLoggerFrm(this); _haltables.Add(ModulesPg); _haltables.Add(PacketLoggerUI); _haltables.Add(InjectionPg.FiltersPg); _haltables.Add(InjectionPg.SchedulerPg); _receivers.Add(ModulesPg); _receivers.Add(InjectionPg.FiltersPg); _receivers.Add(ConnectionPg.HandshakeMngr); _receivers.Add(PacketLoggerUI); }
public MainFrm() { InitializeComponent(); _connected = Connected; _disconnected = Disconnected; _haltables = new List <IHaltable>(); _receivers = new List <IReceiver>(); _actions = new Dictionary <Keys, Action>(); _avatarCache = new Dictionary <string, Bitmap>(); _userCache = new Dictionary <HHotel, Dictionary <string, HUser> >(); In = new Incoming(); Out = new Outgoing(); GameData = new HGameData(); Connection = new HConnection(); Connection.Connected += Connected; Connection.DataOutgoing += HandleData; Connection.DataIncoming += HandleData; Connection.Disconnected += Disconnected; Hook = new KeyboardHook(); Hook.HotkeyActivated += Hook_HotkeyActivated; ConnectionPg = new ConnectionPage(this, ConnectionTab); InjectionPg = new InjectionPage(this, InjectionTab); ToolboxPg = new ToolboxPage(this, ToolboxTab); ModulesPg = new ModulesPage(this, ModulesTab); AboutPg = new AboutPage(this, AboutTab); PacketLoggerUI = new PacketLoggerFrm(this); _haltables.Add(ModulesPg); _haltables.Add(PacketLoggerUI); _haltables.Add(InjectionPg.FiltersPg); _haltables.Add(InjectionPg.SchedulerPg); _receivers.Add(ModulesPg); _receivers.Add(InjectionPg.FiltersPg); _receivers.Add(ConnectionPg); _receivers.Add(PacketLoggerUI); Connection.ListenPort = (int)Program.Settings["ConnectionListenPort"]; }
public App() { InitializeComponent(); ContentPage page = new ConnectionPage(); MainPage = new NavigationPage(page) { Title = string.Empty, #pragma warning disable CS0618 // Тип или член устарел Icon = Device.OnPlatform("tab_feed.png", null, null) #pragma warning restore CS0618 // Тип или член устарел }; // new TabbedPage // { // Children = // { // } //}; }
public App() { InitializeComponent(); MainPage = new ConnectionPage(); }