コード例 #1
0
        public ProcessProfileListItem(ProcessProfile profile)
        {
            InitializeComponent();

            this.profile     = profile;
            windowIcon.Image = profile.WindowIcon;
            windowTitle.Text = profile.WindowTitle;
        }
コード例 #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();
     }
 }
コード例 #3
0
 public ProcessRunner(ProcessProfile profile)
 {
     _profile = profile;
 }