Пример #1
0
        private void SelWBM_Click(object sender, RoutedEventArgs e)
        {
            Button       tmp = sender as Button;
            MaterialsWIN win = new MaterialsWIN(this, MWB, connectionString);

            win.Show();
            this.IsEnabled = false;
        }
        private void SelectMat_Click(object sender, RoutedEventArgs e)
        {
            Button tmp = sender as Button;

            if (tmp.Tag.ToString() == "wall")
            {
                MaterialsWIN win = new MaterialsWIN(this, matwall, connectionString);
                win.Show();
            }
            if (tmp.Tag.ToString() == "bwall")
            {
                MaterialsWIN win = new MaterialsWIN(this, matbwall, connectionString);
                win.Show();
            }
            this.IsEnabled = false;
        }