示例#1
0
        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))));
        }
示例#2
0
        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();
            }
        }
示例#3
0
 public ConvDisplayData(string TableName, CustomConv Phase)
 {
     this.TableName = TableName;
     PhaseTable     = Phase;
 }