示例#1
0
        private void Pole_Dodaj_Click(object sender, RoutedEventArgs e)
        {
            PropertyWindow _PropertyWindow = new PropertyWindow();

            _PropertyWindow.Owner = this;
            if (_PropertyWindow.ShowDialog() == true)
            {
                MainClassObject.Properties.Add(_PropertyWindow.GetPole);
            }
            else
            {
                // something
            }
            Class_Pole_List.Items.Refresh();
        }
示例#2
0
 private void Pole_Edytuj_Click(object sender, RoutedEventArgs e)
 {
     if (Class_Pole_List.SelectedIndex != -1)
     {
         PropertyWindow _PropertyWindow = new PropertyWindow();
         // _PropertyWindow.Owner = this;
         if (_PropertyWindow.ShowDialog() == true)
         {
             MainClassObject.Properties[Class_Pole_List.SelectedIndex] = _PropertyWindow.GetPole;
         }
         else
         {
             // something
         }
         Class_Pole_List.Items.Refresh();
     }
 }