Example #1
0
        private void AddSpecialButton_Click(object sender, RoutedEventArgs e)
        {
            IItem       local   = ((sender as Button).Tag as IItem);
            SpecialReqs special = new SpecialReqs(local);

            special.ShowDialog();
        }
        public SpecialButton(string text, SpecialReqs reqs, SpecialType type)
        {
            this.Content = text;
            this.Click  += click;
            this.reqs    = reqs;
            this.type    = type;

            this.Margin  = new System.Windows.Thickness(10, 10, 0, 0);
            this.Padding = new System.Windows.Thickness(5, 5, 5, 5);
        }