private void btnProfile_Click(object sender, RoutedEventArgs e) { ProfileWindow profile = new ProfileWindow(_profile); profile.ShowDialog(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { _profile = new Profile("", null); ProfileWindow profile = new ProfileWindow(_profile); profile.ShowDialog(); _lfnet = new LFNet(_profile); _lfnet.NetClientEvent += NetClientEventHandler; _lfnet.NetError += NetCoreEventHandler; _lfnet.ReceiveObservers += NetPackageReceiveHandler; }