Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
        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;
        }