private NameValue <ConvViewSource> GetPhaseVS(int i, CustomConv Phase) { StringResources stx = StringResources.Load("Settings"); string Id = "Custom." + CurrentBook.GID; string Name = string.Format(stx.Text("Conv_Phase"), i); return(new NameValue <ConvViewSource>(Name, new ConvViewSource(Name, new ConvDisplayData(Id, Phase)))); }
private void AddPhase_Click(object sender, RoutedEventArgs e) { CustomConv NewPhase = new CustomConv() { Book = CurrentBook.Entry }; Tables.Add(GetPhaseVS(Tables.Count, NewPhase)); if (Tables.Count == 1) { ToggleTableView(); } }
public ConvDisplayData(string TableName, CustomConv Phase) { this.TableName = TableName; PhaseTable = Phase; }