Exemple #1
0
        private void LoadValues(DprComputerInfo.ShutdownComputerParameters parameters)
        {
            txtComputer.Text = parameters.ComputerName;

            foreach (var shutdownType in (DprComputerInfo.ShutdownComputerParameters.ShutdownTypes[])Enum.GetValues(typeof(DprComputerInfo.ShutdownComputerParameters.ShutdownTypes)))
            {
                cmbTypeOfShutdown.Items.Add(shutdownType.ToString( ));
            }
            cmbTypeOfShutdown.SelectedItem = parameters.ShutdownType.ToString( );

            chkForced.Checked  = parameters.Forced;
            numTimeout.Minimum = UInt32.MinValue;
            numTimeout.Maximum = UInt32.MaxValue;
            numTimeout.Value   = parameters.Timeout;
            txtMessage.Text    = parameters.Comment;
        }
Exemple #2
0
 public ConfirmShutdownDialog(DprComputerInfo.ShutdownComputerParameters shutdownParameters)
 {
     _shutdownParameters = shutdownParameters;
     InitializeComponent( );
 }
		public ConfirmShutdownDialog( DprComputerInfo.ShutdownComputerParameters shutdownParameters ) {
			_shutdownParameters = shutdownParameters;
			InitializeComponent( );
		}