Example #1
0
 public EventsMainForm()
 {
     InitializeComponent();
     _filters = new Dictionary<FilterId, object>();
     _toolTip=new ToolTip();
     notifyIcon.Icon = Icon;
     gvEvents.DrawRowNumber = false;
     gvEvents.AutoGenerateColumns = false;
     gvEvents.ColumnHeadersVisible = false;
     gvEvents.RowHeadersVisible = false;
     _appSchemes=new ColorSchemes();
 }
Example #2
0
 public ColorSchemeForm(object dataSource,ColorSchemes manager)
 {
     InitializeComponent();
     _manager = manager;
     gvEvents.AutoGenerateColumns = false;
     gvEvents.DrawRowNumber = false;
     gvEvents.DataSource = dataSource;
     gvEvents.ClearSelection();
     cbElements.DisplayMember = "Description";
     cbElements.ValueMember = "Index";
     cbElements.DataSource = _manager.DefaultColorScheme;
     cbElements.SelectedIndex = 0;
     _loadedScheme = new List<ColorElementInfo>(_manager.CurrentScheme);
 }