Esempio n. 1
0
 private void linkKryptonTreeView_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONTREEVIEW, tsslCurrentStatus);
 }
Esempio n. 2
0
 private void linkKryptonDateTimePicker_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONDATETIMEPICKER, tsslCurrentStatus);
 }
Esempio n. 3
0
 private void linkKryptonMonthCalendar_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONMONTHCALENDAR, tsslCurrentStatus);
 }
Esempio n. 4
0
 private void linkKryptonDomainUpDown_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONDOMAINUPDOWN, tsslCurrentStatus);
 }
Esempio n. 5
0
 private void linkKryptonBreadCrumb_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONBREADCRUMB, tsslCurrentStatus);
 }
Esempio n. 6
0
 private void linkKryptonGroupBox_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONGROUPBOX, tsslCurrentStatus);
 }
 private void linkKryptonCommand_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONCOMMAND, tsslCurrentStatus);
 }
Esempio n. 8
0
 private void linkKryptonSplitContainer_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONSPLITCONTAINER, tsslCurrentStatus);
 }
Esempio n. 9
0
 private void linkKryptonContextMenu_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONCONTEXTMENU, tsslCurrentStatus);
 }
 void Awake()
 {
     instance = this;
     DontDestroyOnLoad(this.gameObject);
 }
Esempio n. 11
0
 private void linkKryptonWrapLabel_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONWRAPLABEL, tsslCurrentStatus);
 }
        public ServerLibraryViewModel(Game game, Lazy <ServersViewModel> serversVm, IContentManager contentList,
                                      IServerList serverList, LaunchManager launchManager, IDialogManager dialogManager, ISpecialDialogManager specialDialogManager)
        {
            _serversVm            = serversVm;
            _contentList          = contentList;
            Settings              = DomainEvilGlobal.Settings;
            _launchManager        = launchManager;
            ServerList            = serverList;
            _dialogManager        = dialogManager;
            _specialDialogManager = specialDialogManager;

            SearchItem = new SearchServerLibraryItemViewModel(this, new CleanServerFilter());

            this.SetCommand(x => x.JoinServ);
            JoinServ.RegisterAsyncTask(
                x => JoinServer((Server)x))
            .Subscribe();

            this.SetCommand(x => x.ServerInfoCommand).Cast <Server>().Subscribe(ServerInfo);
            UpdateCommand = UiTaskHandlerExtensions.CreateCommand("UpdateCommand", true, true);
            UpdateCommand.RegisterAsyncTaskVoid <Server>(UpdateServer).Subscribe();
            this.SetCommand(x => x.ResetFiltersCommand).Subscribe(RefreshFilter);
            this.SetCommand(x => x.Note).Cast <Server>().Subscribe(ShowNotes);

            ViewType = Settings.ServerOptions.ViewType;
            this.ObservableForProperty(x => x.ViewType)
            .Select(x => x.Value)
            .BindTo(Settings, s => s.ServerOptions.ViewType);

            this.WhenAnyValue(x => x.ActiveItem)
            .Skip(1)
            .Subscribe(x => game.CalculatedSettings.Server = x);

            DomainEvilGlobal.SelectedGame.WhenAnyValue(x => x.ActiveGame.CalculatedSettings.Server)
            .Subscribe(x => ActiveItem = x);

            var playerSortDescriptions =
                new[] {
                new SortDescription("Score", ListSortDirection.Descending),
                new SortDescription("Deaths", ListSortDirection.Ascending)
            };

            Players = new ReactiveList <Player>();
            Players.EnableCollectionSynchronization(_playersLock);
            PlayersView = Players.SetupDefaultCollectionView(playerSortDescriptions, null, null, null, true);

            this.WhenAnyValue(x => x.SelectedItem.SelectedItem)
            .OfType <Server>()
            .BindTo(this, x => x.SelectedServer);

            this.WhenAnyValue(x => x.SelectedServer.Players)
            .ObserveOn(RxApp.MainThreadScheduler)
            .Subscribe(UpdatePlayers);

            this.WhenAnyValue(x => x.SelectedItem.SelectedItem)
            .Subscribe(x => {
                if (x == null)
                {
                    Players.Clear();
                }
            });

            IsLoading = true;
        }
 private void linkKryptonRadioButton_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONRADIOBUTTON, tsslCurrentStatus);
 }
 private void linkKryptonTaskDialog_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONTASKDIALOG, tsslCurrentStatus);
 }
Esempio n. 15
0
 private void linkKryptonBorderEdge_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONBORDEREDGE, tsslCurrentStatus);
 }
Esempio n. 16
0
 private void linkKryptonCheckedListBox_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONCHECKEDLISTBOX, tsslCurrentStatus);
 }
Esempio n. 17
0
 private void linkKryptonSeparator_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONSEPARATOR, tsslCurrentStatus);
 }
Esempio n. 18
0
 private void linkKryptonRichTextBox_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONRICHTEXTBOX, tsslCurrentStatus);
 }
Esempio n. 19
0
 private void linkKryptonHeader_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONHEADER, tsslCurrentStatus);
 }
 private void linkKryptonPalette_LinkClicked(object sender, EventArgs e)
 {
     LaunchManager.LaunchComponentExample(ComponentToolkitExamples.KRYPTONPALETTE, tsslCurrentStatus);
 }