コード例 #1
0
 /// <summary>
 /// //конструктор со ссылкой на родительское окно
 /// </summary>
 /// <param name="softManager"></param>
 public FormRemovePrograms(FormSoftManager softManager)
 {
     InitializeComponent();
     this.softManager   = softManager;
     tbAdmin.Enabled    = false;
     tbPassword.Enabled = false;
 }
コード例 #2
0
 /// <summary>
 /// конструктор со ссылкой на родительское окно
 /// </summary>
 /// <param name="parrent"></param>
 public FormInstallPrograms(FormSoftManager parrent)
 {
     softManager = parrent;
     InitializeComponent();
     compNameField.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     optionRestart            = "REBOOT=norestart";//"REBOOT = ReallySuppress";
     randomFolderName         = "";
     oneFile     = true;
     anotherUser = false;
     pingSender  = new Ping();
     pingOptions = new PingOptions();
     pingOptions.DontFragment = true;
 }