示例#1
0
        private void ButtonAddNew_Click(object sender, RoutedEventArgs e)
        {
            WindowAddNewTimeSeries test = new WindowAddNewTimeSeries(this);

            test.Owner = this;
            test.ShowDialog();
        }
示例#2
0
        public WindowSelectColor(WindowAddNewTimeSeries window)
        {
            InitializeComponent();
            window_ = window;

            List <Cell> ListCell = new List <Cell>();
            Color       obj      = (Color)Colors.AliceBlue;

            foreach (var item in typeof(Colors).GetProperties())
            {
                Cell     cell  = new Cell();
                string[] words = item.ToString().Split(new char[] { ' ' });
                cell.NameColor = words[1];
                ListCell.Add(cell);
            }
            TableColor.ItemsSource = ListCell;
        }