예제 #1
0
 void Properties(object sender, EventArgs e)
 {
     if (_PropertiesScreen == null)
     {
         _PropertiesScreen = new PropertiesScreen();
         _PropertiesScreen.InitializeUpdateObject(_MonitorService);
         _PropertiesScreen.FormClosed += _PropertiesScreen_FormClosed;
         _PropertiesScreen?.Show();
     }
     else
     {
         _PropertiesScreen.Show();
     }
 }
예제 #2
0
 private void _PropertiesScreen_FormClosed(object sender, FormClosedEventArgs e)
 {
     _PropertiesScreen.FormClosed -= _PropertiesScreen_FormClosed;
     _PropertiesScreen             = null;
 }