public ProcessProfileListItem(ProcessProfile profile)
        {
            InitializeComponent();

            this.profile     = profile;
            windowIcon.Image = profile.WindowIcon;
            windowTitle.Text = profile.WindowTitle;
        }
Exemple #2
0
 internal void ChangeSelectedProcess(ProcessProfileListItem item)
 {
     try
     {
         processViewingText.Text  = "Profile: " + item.profile.WindowTitle;
         processViewingIcon.Image = item.profile.WindowIcon;
         foreach (ProcessProfileListItem i in processList.Controls)
         {
             i.BackColor = Color.Transparent;
         }
         item.BackColor  = Color.CornflowerBlue;
         SelectedProfile = item.profile;
     }
     catch (Exception)
     {
         MessageBox.Show(this, "Window '" + item.profile.WindowTitle + "' no longer exists. Refreshing list...", "Window not found", MessageBoxButtons.OK, MessageBoxIcon.Error);
         RefreshProcessList();
     }
 }
 public ProcessRunner(ProcessProfile profile)
 {
     _profile = profile;
 }