Ejemplo n.º 1
0
        public ProcessView(Garterbelt fetishe)
        {
            this.InitializeComponent();

            this.fetishe             = fetishe;
            this.ProcessName.Content = fetishe.Name;
            // TODO: 프로세스 아이콘 가져오기

            this.ProcessEnabled.Checked   += ProcessEnabled_ChangeState;
            this.ProcessEnabled.Unchecked += ProcessEnabled_ChangeState;
        }
Ejemplo n.º 2
0
 private void processStateChanged(Garterbelt fetishe, bool enabled)
 {
     if (enabled)
     {
         if (!this.SelectedGarters.Exists(it => it.Name == fetishe.Name))
         {
             this.SelectedGarters.Add(fetishe);
         }
     }
     else
     {
         this.SelectedGarters.RemoveAll(it => it.Name == fetishe.Name);
     }
 }