Inheritance: INotifyPropertyChanged
Exemplo n.º 1
0
 private void CancelChanges(ConfigurationViewModel configuration)
 {
     try {
         CloseAction();
     } catch (Exception ex) {
         MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Stop, MessageBoxResult.OK);
     }
 }
Exemplo n.º 2
0
 private void AcceptChanges(ConfigurationViewModel serverRule)
 {
     try {
         Configuration configuration = new Configuration()
         {
             LogType       = LogType,
             PortChainsaw  = Convert.ToInt32(PortChainsaw),
             PortLogcat    = Convert.ToInt32(PortLogcat),
             LogTimeFormat = LogTimeFormat
         };
         ConfigurationDao.Write(configuration);
         IoC.Get <Receiver>().Initialize(configuration);
         CloseAction();
     } catch (Exception ex) {
         MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Stop, MessageBoxResult.OK);
     }
 }
Exemplo n.º 3
0
 private void CancelChanges(ConfigurationViewModel configuration)
 {
     try {
         CloseAction();
     } catch (Exception ex) {
         MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Stop, MessageBoxResult.OK);
     }
 }
Exemplo n.º 4
0
 private bool CanCancelChanges(ConfigurationViewModel configuration)
 {
     return true;
 }
Exemplo n.º 5
0
 private bool CanAcceptChanges(ConfigurationViewModel serverRule)
 {
     return true;
 }
Exemplo n.º 6
0
 private void AcceptChanges(ConfigurationViewModel serverRule)
 {
     try {
         Configuration configuration = new Configuration() {
             LogType = LogType,
             PortChainsaw = Convert.ToInt32(PortChainsaw),
             PortLogcat = Convert.ToInt32(PortLogcat)
         };
         ConfigurationDao.Write(configuration);
         IoC.Get<Receiver>().Initialize(configuration);
         CloseAction();
     } catch (Exception ex) {
         MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Stop, MessageBoxResult.OK);
     }
 }
Exemplo n.º 7
0
 private bool CanCancelChanges(ConfigurationViewModel configuration)
 {
     return(true);
 }
Exemplo n.º 8
0
 private bool CanAcceptChanges(ConfigurationViewModel serverRule)
 {
     return(true);
 }