private void RegistryValueBackupDeleteForm_Load(object sender, EventArgs e)
 {
     this.Text          = string.Format("Registry Value Backup Delete - {0}", this.Title);
     seqTextBox.Enabled = false;
     if (!string.IsNullOrWhiteSpace(FullValue))
     {
         int startIndex = FullValue.IndexOf("=");
         if (startIndex != -1)
         {
             regValueTextBox.Text = FullValue.Substring(startIndex + 1);
             seqTextBox.Text      = FullValue.Substring(0, startIndex);
         }
         else
         {
             seqTextBox.Text      = FullValue;
             regValueTextBox.Text = "<New Reg Key\\Reg Value Name>";
         }
     }
     else
     {
         regValueTextBox.Text = "<New Reg Key\\Reg Value Name>";
         seqTextBox.Enabled   = false;
         seqTextBox.Text      = Index.ToString();
     }
 }
Exemple #2
0
 private void DirectoriesCleanupIfEmptyForm_Load(object sender, EventArgs e)
 {
     this.Text          = string.Format("Registry Cleanup If Empty - {0}", this.Title);
     seqTextBox.Enabled = false;
     if (!string.IsNullOrWhiteSpace(FullValue))
     {
         int startIndex = FullValue.IndexOf("=");
         if (startIndex != -1)
         {
             regKeyTextBox.Text = FullValue.Substring(startIndex + 1);
             seqTextBox.Text    = FullValue.Substring(0, startIndex);
         }
         else
         {
             seqTextBox.Text    = FullValue;
             regKeyTextBox.Text = "<New Reg Key>";
         }
     }
     else
     {
         regKeyTextBox.Text = "<New Reg Key>";
         seqTextBox.Enabled = false;
         seqTextBox.Text    = Index.ToString();
     }
 }
 private void RegistrationFreeCOMForm_Load(object sender, EventArgs e)
 {
     this.Text          = string.Format("RegistrationFreeCOM - {0}", this.Title);
     seqTextBox.Enabled = false;
     if (!string.IsNullOrWhiteSpace(FullValue))
     {
         int startIndex = FullValue.IndexOf("=");
         if (startIndex != -1)
         {
             comFileName.Text = FullValue.Substring(startIndex + 1);
             seqTextBox.Text  = FullValue.Substring(0, startIndex);
         }
         else
         {
             seqTextBox.Text  = FullValue;
             comFileName.Text = "<COM File Name>";
         }
     }
     else
     {
         comFileName.Text   = "<COM File Name>";
         seqTextBox.Enabled = false;
         seqTextBox.Text    = Index.ToString();
     }
 }
Exemple #4
0
 private void DirectoriesLinkForm_Load(object sender, EventArgs e)
 {
     this.Text = string.Format("Prefix to Path Environment Variable - {0}", this.Title);
     if (!string.IsNullOrWhiteSpace(FullValue))
     {
         int startIndex = FullValue.IndexOf("=");
         if (startIndex != -1)
         {
             targetDirTextBox.Text = FullValue.Substring(startIndex + 1);
             srcDirTextBox.Text    = FullValue.Substring(0, startIndex);
         }
         else
         {
             srcDirTextBox.Text    = FullValue;
             targetDirTextBox.Text = "<Target folder Path>";
         }
     }
     else
     {
         targetDirTextBox.Text = "<Target folder name to be added to PATH Environment Variable>";
         srcDirTextBox.Text    = "-";
     }
 }
 private void RegistryValueWriteForm_Load(object sender, EventArgs e)
 {
     this.Text = string.Format("Registry Value Write - {0}", this.Title);
     if (!string.IsNullOrWhiteSpace(FullValue))
     {
         int startIndex = FullValue.IndexOf("=");
         if (startIndex != -1)
         {
             regKeyTextBox.Text   = FullValue.Substring(0, startIndex);
             regValueTextBox.Text = FullValue.Substring(startIndex + 1);
         }
         else
         {
             regKeyTextBox.Text   = FullValue;
             regValueTextBox.Text = "<Reg Type:New Reg Value>";
         }
     }
     else
     {
         regKeyTextBox.Text   = "<New Reg Key\\Reg Value Name>";
         regValueTextBox.Text = "<Reg Type:New Reg Value>";
     }
 }
Exemple #6
0
 private void DirectoriesMoveForm_Load(object sender, EventArgs e)
 {
     this.Text = string.Format("Directories Move - {0}", this.Title);
     if (!string.IsNullOrWhiteSpace(FullValue))
     {
         int startIndex = FullValue.IndexOf("=");
         if (startIndex != -1)
         {
             targetDirTextBox.Text = FullValue.Substring(startIndex + 1);
             srcDirTextBox.Text    = FullValue.Substring(0, startIndex);
         }
         else
         {
             srcDirTextBox.Text    = FullValue;
             targetDirTextBox.Text = "<Target folder Path>";
         }
     }
     else
     {
         targetDirTextBox.Text = "<Target folder Path>";
         srcDirTextBox.Text    = "<Folder Name from Data Folder";
     }
 }
 private void RegistryKeysForm_Load(object sender, EventArgs e)
 {
     this.Text = string.Format("Registry Keys - {0}", this.Title);
     if (!string.IsNullOrWhiteSpace(FullValue))
     {
         int startIndex = FullValue.IndexOf("=");
         if (startIndex != -1)
         {
             fileNameTextBox.Text = FullValue.Substring(0, startIndex);
             regKeyTextBox.Text   = FullValue.Substring(startIndex + 1);
         }
         else
         {
             fileNameTextBox.Text = FullValue;
             regKeyTextBox.Text   = "<New Reg Key>";
         }
     }
     else
     {
         regKeyTextBox.Text   = "<New Reg Key>";
         fileNameTextBox.Text = "<Reg File Name from Data Folder>";
     }
 }
Exemple #8
0
 private void FilesMoveForm_Load(object sender, EventArgs e)
 {
     this.Text = string.Format("Files Move - {0}", this.Title);
     if (!string.IsNullOrWhiteSpace(FullValue))
     {
         int startIndex = FullValue.IndexOf("=");
         if (startIndex != -1)
         {
             filePathTextBox.Text = FullValue.Substring(startIndex + 1);
             fileNameTextBox.Text = FullValue.Substring(0, startIndex);
         }
         else
         {
             fileNameTextBox.Text = FullValue;
             filePathTextBox.Text = "<Target File Path>";
         }
     }
     else
     {
         filePathTextBox.Text = "<Target File Path>";
         fileNameTextBox.Text = "<File Name from Data Folder";
     }
 }
Exemple #9
0
 private void EnvironmentForm_Load(object sender, EventArgs e)
 {
     this.Text = string.Format("Environment - {0}", this.Title);
     if (!string.IsNullOrWhiteSpace(FullValue))
     {
         int startIndex = FullValue.IndexOf("=");
         if (startIndex != -1)
         {
             envVarTextBox.Text   = FullValue.Substring(0, startIndex);
             envValueTextBox.Text = FullValue.Substring(startIndex + 1);
         }
         else
         {
             envVarTextBox.Text   = FullValue;
             envValueTextBox.Text = "<New Env Value>";
         }
     }
     else
     {
         envValueTextBox.Text = "<New Env Var Name>";
         envVarTextBox.Text   = "<New Env Value>";
     }
 }
 private void DirectoriesCleanupForceForm_Load(object sender, EventArgs e)
 {
     this.Text          = string.Format("Directories Cleanup Force - {0}", this.Title);
     seqTextBox.Enabled = false;
     if (!string.IsNullOrWhiteSpace(FullValue))
     {
         int startIndex = FullValue.IndexOf("=");
         if (startIndex != -1)
         {
             folderPathTextBox.Text = FullValue.Substring(startIndex + 1);
             seqTextBox.Text        = FullValue.Substring(0, startIndex);
         }
         else
         {
             seqTextBox.Text        = FullValue;
             folderPathTextBox.Text = "<Target folder Path>";
         }
     }
     else
     {
         folderPathTextBox.Text = "<Target folder Path>";
         seqTextBox.Text        = Index.ToString();
     }
 }