예제 #1
0
        private void add_column(object sender, RoutedEventArgs e)
        {
            int limit = int.Parse(ColumnCreator.limit);

            if (limit == 0)
            {
                limit = Constants.InfiniteLimit;
            }
            try
            {
                InterfaceLayer.addColumn(ColumnCreator.name, limit);
                ColumnCreator.limit = "";
                ColumnCreator.name  = "";
                errors.error        = "";
                refresh();
            }
            catch (AlmogException exi)
            {
                errors.error = (String)exi.Value;
            }
        }