/// <summary>
        /// 点击上料平台层数事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            BtnInfoEx code = (sender as Button).Tag as BtnInfoEx;

            if (EBtnInfo != null)
            {
                EBtnInfo(code);
            }
        }
        public void CreateKilnInfo(int num, string name, string number)
        {
            int stoveNum = 0;

            for (int i = 1; i <= num; i++)
            {
                TempListBtnInfo btnInfo = new TempListBtnInfo();
                BtnInfoEx       btn     = new BtnInfoEx();
                model.IndexName     = name;
                model.Index         = Convert.ToInt32(number);
                btn.BtnIndex        = stoveNum++;
                btn.BtnCode         = string.Empty;
                btn.BtnStyle        = this.FindResource("MainButton") as Style;
                btnInfo.MainBtnInfo = btn;
                model.TempBtnData.Add(btnInfo);
            }
        }