public SessionViewModel(Guid sessionUniqueId, RTSessionConfig recentSessionConfig) { OneWaySessions = new Dictionary <Guid, OneWaySessionViewModel>(); SessionUniqueId = sessionUniqueId; m_recentSessionConfig = recentSessionConfig; recentSessionConfig.SessionGroupConfigReference.Load(); recentSessionConfig.LeftSourceConfigReference.Load(); recentSessionConfig.LeftSourceConfig.MigrationSourceReference.Load(); recentSessionConfig.RightSourceConfigReference.Load(); recentSessionConfig.RightSourceConfig.MigrationSourceReference.Load(); OneWaySessions[recentSessionConfig.LeftSourceConfig.MigrationSource.UniqueId] = new OneWaySessionViewModel(recentSessionConfig, recentSessionConfig.LeftSourceConfig.MigrationSource, recentSessionConfig.RightSourceConfig.MigrationSource); WorkFlowType workFlowType = new WorkFlowType(recentSessionConfig.SessionGroupConfig.WorkFlowType); if (workFlowType.DirectionOfFlow == DirectionOfFlow.Bidirectional) { OneWaySessions[recentSessionConfig.RightSourceConfig.MigrationSource.UniqueId] = new OneWaySessionViewModel(recentSessionConfig, recentSessionConfig.RightSourceConfig.MigrationSource, recentSessionConfig.LeftSourceConfig.MigrationSource); } }
public OneWaySessionViewModel(RTSessionConfig session, RTMigrationSource source, RTMigrationSource target) { Session = session; Source = source; Target = target; }
public SessionConfigViewModel(RTSessionConfig sessionConfig) { m_sessionConfig = sessionConfig; }