示例#1
0
        private void Change_Table_Click(object sender, RoutedEventArgs e)
        {
            GenericAlertWindow window = new GenericAlertWindow();

            window.CreateSelectionView(listOfTables);
            window.ShowDialog();
        }
示例#2
0
        /// <summary>
        /// Creates a new instance of a Table.
        /// </summary>
        private void CreateNewTable()
        {
            var window = new GenericAlertWindow();

            window.CreateLabelValueView(
                new string[] { "Table Number:", "Table Name:" },
                new Type[] { typeof(int), typeof(string) }
                );

            window.ShowDialog();
            if (window.Values.Count != 0)
            {
                Table table = new Table(int.Parse(window.Values[0]), window.Values[1], "Kamil");
                listOfTables.Add(table); //TODO: Proper WaiterName download
                currentTable    = listOfTables.Last();
                tableIsSelected = true;
                UpdateTableInfo();
                ClearItemDisplayList();
            }
        }