Beispiel #1
0
        private void AddFilterBtn_Click(object sender, EventArgs e)
        {
            NameConverter Converter = new NameConverter();

            Filters.Add(new Filter(KeyBox.Text, OperatorBox.Text[0], ValueBox.Text));
            UpdateFilters();
            UpdateButtons();
        }
Beispiel #2
0
        public void ViewData(Dictionary <string, string> Data)
        {
            List <string> ConvertedKeys = new List <string>();
            NameConverter Converter     = new NameConverter();

            foreach (string S in Data.Keys)
            {
                ConvertedKeys.Add(Converter.Convert(S));
            }

            int TabLength = ConvertedKeys.Max(X => X.Length) + 2;

            string[] Values = Data.Values.ToArray();
            DataLabel.Text = "";
            for (int i = 0; i < Data.Count; i++)
            {
                DataLabel.Text += ConvertedKeys[i].PadRight(TabLength) + Values[i] + "\n";
            }
            Show();
        }