private void InitIconConfig(AppEntity app) { var index = apps.FindIndex(a => a == app); apps[index].PictureBox.Location = new Point( config.Margin + index % config.RowCapacity * (config.IconSize + config.Margin), config.Margin * 2 + config.ControlButtonSize + index / config.RowCapacity * (config.IconSize + config.Margin)); apps[index].SetSize(new Size(config.IconSize, config.IconSize)); apps[index].PictureBox.MouseClick += ClickAppIcon; apps[index].PictureBox.MouseClick += UpdateLaunchButtonStatus; }
public AppEntityJson(AppEntity app) { AppName = app.AppName; ExecutePath = app.ExecutePath; IsSelected = app.IsSelected; IsLoggingActive = app.IsLoggingActive; if (IsLoggingActive) { LoggerPath = app.Logger.Path; } }
private void MakeCurrent(PictureBox picture) { _currentApp = apps.Find(app => app.PictureBox == picture); }