public void RedrawContent() { runningThreadsList.ClearColumns(); runningThreadsList.AddColumn(ResourceService.GetString("Global.ID"), new Binding { Path = new PropertyPath("ID") }, 100); runningThreadsList.AddColumn(ResourceService.GetString("Global.Name"), new Binding { Path = new PropertyPath("Name") }, 300); runningThreadsList.AddColumn(ResourceService.GetString("AddIns.HtmlHelp2.Location"), new Binding { Path = new PropertyPath("Location") }, 250); runningThreadsList.AddColumn(ResourceService.GetString("MainWindow.Windows.Debug.Threads.Priority"), new Binding { Path = new PropertyPath("Priority") }, 120); runningThreadsList.AddColumn(ResourceService.GetString("MainWindow.Windows.Debug.Threads.Frozen"), new Binding { Path = new PropertyPath("Frozen") }, 80); }
void Start() { nicknameField.text = "Shooter" + Random.Range(1000, 9999); listView.AddColumn("Name", roomNameColWidth); listView.AddColumn("Players", roomPlayersColWidth); validateRoomForm(); }
/// <summary> /// Attach the view to this presenter. /// </summary> /// <param name="model"></param> /// <param name="viewBase"></param> /// <param name="explorerPresenter"></param> public void Attach(object model, object viewBase, ExplorerPresenter explorerPresenter) { view = (ViewBase)viewBase; jobListView = view.GetControl <ListView>("jobListView"); refreshButton = view.GetControl <ButtonView>("refreshButton"); downloadButton = view.GetControl <ButtonView>("downloadButton"); stopButton = view.GetControl <ButtonView>("stopButton"); deleteButton = view.GetControl <ButtonView>("deleteButton"); credentialsButton = view.GetControl <ButtonView>("credentialsButton"); showMyJobsOnlyCheckbox = view.GetControl <CheckBoxView>("showMyJobsCheckbox"); progressBar = view.GetControl <ProgressBarView>("progressBar"); jobListView.SortColumn = "Start time"; jobListView.SortAscending = false; jobListView.AddColumn("Name"); jobListView.AddColumn("Owner"); jobListView.AddColumn("State"); jobListView.AddColumn("# Sims"); jobListView.AddColumn("Progress"); jobListView.AddColumn("Start time"); jobListView.AddColumn("End time"); jobListView.AddColumn("Duration"); jobListView.AddColumn("CPU time"); refreshButton.Clicked += OnRefreshClicked; downloadButton.Clicked += OnDownloadClicked; stopButton.Clicked += OnStopClicked; deleteButton.Clicked += OnDeleteClicked; credentialsButton.Clicked += OnCredentialsClicked; showMyJobsOnlyCheckbox.Changed += OnShowMyJobsChanged; }
// The window constructor. public MyWindow() { // Set the alignment of the list view. _listView.HorizontalAlignment = HorizontalAlignment.Left; _listView.VerticalAlignment = VerticalAlignment.Top; // Add the columns to the list view. _listView.AddColumn("Name", 200); _listView.AddColumn("Size", 80); _listView.AddColumn("Created", 80); // Refresh the directory and file list RefreshList(); // Set up the stack panel. stackPanel.Orientation = Orientation.Vertical; // Add the list view to the panel. stackPanel.Children.Add(_listView); // Set the main window child to the panel. this.Child = stackPanel; }
public void RedrawContent() { loadedModulesList.ClearColumns(); loadedModulesList.AddColumn(StringParser.Parse("${res:Global.Name}"), new Binding { Path = new PropertyPath("Name") }, 250); loadedModulesList.AddColumn(StringParser.Parse("${res:MainWindow.Windows.Debug.Modules.AddressColumn}"), new Binding { Path = new PropertyPath("Address") }, 100); loadedModulesList.AddColumn(StringParser.Parse("${res:Global.Path}"), new Binding { Path = new PropertyPath("Path") }, 250); loadedModulesList.AddColumn(StringParser.Parse("${res:MainWindow.Windows.Debug.Modules.OrderColumn}"), new Binding { Path = new PropertyPath("Order") }, 80); loadedModulesList.AddColumn(StringParser.Parse("${res:MainWindow.Windows.Debug.Modules.SymbolsColumn}"), new Binding { Path = new PropertyPath("Symbols") }, 130); }
public static Gui CreateJoinGameInterface(ref AnoleEngine.Engine objEngineInstance, JoinGameState state) { Gui UI = new Gui(objEngineInstance.GameWindow); float fltX = objEngineInstance.GameWindow.Size.X; float fltY = objEngineInstance.GameWindow.Size.Y; ListView objServerList = new ListView(); objServerList.Size = new Vector2f(1505f, 600f); objServerList.Position = new Vector2f(100, 150); objServerList.SetRenderer(UI_Renderers.UIListViewRenderer.Data); objServerList.AddColumn("NAME:", 800f, HorizontalAlignment.Left); objServerList.AddColumn("PLAYERS:", 100f, HorizontalAlignment.Left); objServerList.AddColumn("MAP:", 500f, HorizontalAlignment.Left); objServerList.AddColumn("IP:PORT", 100f, HorizontalAlignment.Left); objServerList.AddItem(new List <string>() { "Test server name", "2/8", "Super awesome map 5" }); UI.Add(objServerList, "ServerList"); Button JoinGameButton = new Button("JOIN GAME"); JoinGameButton.Size = new Vector2f(200, 50); float fltJoinGameXPos = (1000); float fltJoinGameYPos = (50); JoinGameButton.Position = new Vector2f(fltJoinGameXPos, fltJoinGameYPos); JoinGameButton.SetRenderer(UI_Renderers.UIButtonRenderer.Data); UI.Add(JoinGameButton, "JoinGameButton"); Button RefreshListButton = new Button("REFRESH"); RefreshListButton.Size = new Vector2f(200, 50); float fltRefreshXPos = (1300); float fltRefreshYPos = (50); RefreshListButton.Position = new Vector2f(fltRefreshXPos, fltRefreshYPos); RefreshListButton.SetRenderer(UI_Renderers.UIButtonRenderer.Data); UI.Add(RefreshListButton, "RefreshListButton"); Button BackButton = new Button("BACK"); BackButton.Size = new Vector2f(200, 50); float fltJBackButtonXPos = (100); float fltBackButtonYPos = (50); BackButton.Position = new Vector2f(fltJBackButtonXPos, fltBackButtonYPos); BackButton.SetRenderer(UI_Renderers.UIBackButtonRenderer.Data); UI.Add(BackButton, "BackButton"); Button CreateGameButton = new Button("CreateGame"); CreateGameButton.Size = new Vector2f(200, 50); float fltJCreateGameButtonXPos = (400); float fltCreateGameButtonYPos = (50); CreateGameButton.Position = new Vector2f(fltJCreateGameButtonXPos, fltCreateGameButtonYPos); CreateGameButton.SetRenderer(UI_Renderers.UIButtonRenderer.Data); UI.Add(CreateGameButton, "CreateGameButton"); ((ListView)UI.Get("ServerList")).ItemSelected += new EventHandler <SignalArgsInt>(state.ServiceListSelectEvent); ((Button)UI.Get("JoinGameButton")).Clicked += new EventHandler <SignalArgsVector2f>(state.JoinGameEvent); ((Button)UI.Get("RefreshListButton")).Clicked += new EventHandler <SignalArgsVector2f>(state.RefreshServerListEvent); ((Button)UI.Get("BackButton")).Clicked += new EventHandler <SignalArgsVector2f>(state.BackToMainMenuEvent); ((Button)UI.Get("CreateGameButton")).Clicked += new EventHandler <SignalArgsVector2f>(state.CreateGameEvent); return(UI); }
void Start() { listView.AddColumn("Player Name", playerNameColWidth); listView.AddColumn("Kills", playerScoreColWidth); listView.AddColumn("Deaths", playerScoreColWidth); }