private void RunSetActionsGrid_RowChangedEvent(object sender, EventArgs e) { RunSetActionEditFrame.Content = null; if (RunSetActionsGrid.CurrentItem != null) { RunSetActionEditPage RSAEP = null; if (((Amdocs.Ginger.Repository.RepositoryItemBase)RunSetActionsGrid.CurrentItem).ItemName == "Open ALM Defects") { if (runSetActionEditPage == null) { runSetActionEditPage = new RunSetActionEditPage((RunSetActionBase)RunSetActionsGrid.CurrentItem); RSAEP = runSetActionEditPage; } else { RSAEP = runSetActionEditPage; } } else { RSAEP = new RunSetActionEditPage((RunSetActionBase)RunSetActionsGrid.CurrentItem); } RunSetActionEditFrame.Content = RSAEP; } }
private void RunSetActionsGrid_RowChangedEvent(object sender, EventArgs e) { RunSetActionEditFrame.Content = null; if (RunSetActionsGrid.CurrentItem != null) { RunSetActionEditPage RSAEP = new RunSetActionEditPage((RunSetActionBase)RunSetActionsGrid.CurrentItem); RunSetActionEditFrame.Content = RSAEP; } }
private void SetContentAndEventsListeners() { RunSetActionsGrid.DataSourceList = mRunSetConfig.RunSetActions; RunSetActionsGrid.RowChangedEvent += RunSetActionsGrid_RowChangedEvent; RunSetActionEditFrame.Content = null; if (RunSetActionsGrid.CurrentItem != null) { RunSetActionEditPage RSAEP = new RunSetActionEditPage((RunSetActionBase)RunSetActionsGrid.CurrentItem); RunSetActionEditFrame.Content = RSAEP; } }