Exemple #1
0
        private void NewRangeList(object sender, RoutedEventArgs e)
        {
            AddNewRangeListDialog dialog = new AddNewRangeListDialog(this, 0, "");

            if (dialog.ShowDialog() == true)
            {
                iuc.rangeDictionary.Add(dialog.RangeName, dialog.MultipleNumber);
                RefrushData();
            }
        }
Exemple #2
0
        private void EditRangeList(object sender, RoutedEventArgs e)
        {
            if (lbMain.SelectedIndex == -1)
            {
                return;
            }
            String[] str = iuc.rangeDictionary.Keys.ToArray();
            AddNewRangeListDialog dialog = new AddNewRangeListDialog(this, 1, str[lbMain.SelectedIndex]);

            if (dialog.ShowDialog() == true)
            {
                iuc.rangeDictionary[dialog.RangeName] = dialog.MultipleNumber;
                RefrushData();
            }
        }