public void AddAccount(string[] Account) { if (AccountGrid.InvokeRequired) { AccountGrid.Invoke((MethodInvoker)(() => AccountGrid.Rows.Add(Account[0], Account[1]))); } }
public void OnInitialized(IContainerProvider containerProvider) { if (AccountVM.TestService()) { IRegionManager regionManager = containerProvider.Resolve <IRegionManager>(); // IRegion region = regionManager.Regions["WorkspaceRegion"]; // region.RemoveAll(); //We get from the container an instance of AccountGrid. AccountGrid view = containerProvider.Resolve <AccountGrid>(); //We get from the region manager our target region. IRegion region = regionManager.Regions["WorkspaceRegion"]; //We inject the view into the region. region.Add(view); // regionManager.RegisterViewWithRegion("WorkspaceRegion", typeof(AccountGrid)); } else { throw new ModularityException(); } }
private void SelectAllButtonClick(object sender, RoutedEventArgs e) { // my debug button :) if (Environment.UserName == "highvoltz") { } AccountGrid.SelectAll(); }
public void UpdateGrid(DataTable ComboTable) { if (AccountGrid.InvokeRequired) { AccountGrid.Invoke((MethodInvoker)(() => AccountGrid.DataSource = ComboTable)); } else { AccountGrid.DataSource = ComboTable; } }
public void UpdateAccountGrid(Account _Account) { if (AccountGrid.InvokeRequired) { AccountGrid.Invoke((MethodInvoker)(() => this.AccountGrid.Rows.Add(_Account.Username, _Account.Password))); } else { this.AccountGrid.Rows.Add(_Account.Username, _Account.Password); } }
private void SelectAllButtonClick(object sender, RoutedEventArgs e) { AccountGrid.SelectAll(); }
public void DataBindingComplete(AccountGrid grid) { return; }
public void CellValueChanged(AccountGrid grid, int rowIndex) { return; }