/// <summary> /// Initializes a new instance of the <see cref="TaskActivityFilterDialog"/> class. /// </summary> /// <param name="engine">The engine.</param> public PrintSetupDialog(TaskClerkEngine engine) { InitializeComponent(); _engine = engine; _taskDescriptions = new Collection<TaskDescription>(); DateTime tempStart = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day); DateTime tempEnd = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day).AddDays(1).Subtract(new TimeSpan(0,0,1)); _start = (DateTime)_engine.SettingsProvider.Get("FilterStartDate", tempStart); _end = (DateTime)_engine.SettingsProvider.Get("FilterEndDate", tempEnd); datetimepickerStartDate.Value = _start; datetimepickerStartTime.Value = _start; datetimepickerEndDate.Value = _end; datetimepickerEndTime.Value = _end; comboboxScheme.SelectedIndex = 0; ReBuildTree(_engine.TaskDescriptionsProvider.TaskDescriptions); this.datetimepickerEndTime.ValueChanged += new System.EventHandler(this.ValueChanged); this.datetimepickerStartTime.ValueChanged += new System.EventHandler(this.ValueChanged); this.datetimepickerEndDate.ValueChanged += new System.EventHandler(this.ValueChanged); this.datetimepickerStartDate.ValueChanged += new System.EventHandler(this.ValueChanged); }
/// <summary> /// Initializes a new instance of the <see cref="TaskActivityFilterDialog"/> class. /// </summary> /// <param name="engine">The engine.</param> public PrintSetupDialog(TaskClerkEngine engine) { InitializeComponent(); _engine = engine; _taskDescriptions = new Collection <TaskDescription>(); DateTime tempStart = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day); DateTime tempEnd = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day).AddDays(1).Subtract(new TimeSpan(0, 0, 1)); _start = (DateTime)_engine.SettingsProvider.Get("FilterStartDate", tempStart); _end = (DateTime)_engine.SettingsProvider.Get("FilterEndDate", tempEnd); datetimepickerStartDate.Value = _start; datetimepickerStartTime.Value = _start; datetimepickerEndDate.Value = _end; datetimepickerEndTime.Value = _end; comboboxScheme.SelectedIndex = 0; ReBuildTree(_engine.TaskDescriptionsProvider.TaskDescriptions); this.datetimepickerEndTime.ValueChanged += new System.EventHandler(this.ValueChanged); this.datetimepickerStartTime.ValueChanged += new System.EventHandler(this.ValueChanged); this.datetimepickerEndDate.ValueChanged += new System.EventHandler(this.ValueChanged); this.datetimepickerStartDate.ValueChanged += new System.EventHandler(this.ValueChanged); }
public ToDoExplorer(TaskClerkEngine engine) { InitializeComponent(); _engine = engine; _todoTasks = _engine.SettingsProvider.Get("ToDoTasks", new List<ToDoTask>()) as List<ToDoTask>; _options = _engine.SettingsProvider.Get("ToDoOptions", new ToDoOptions()) as ToDoOptions; listView.Font = _engine.SettingsProvider.Get("GeneralFont", SystemFonts.DefaultFont) as Font; toolStripStatusLang.Text = Thread.CurrentThread.CurrentCulture.Name; GetFormSizeAndLocation(); CreateGroupsInListView(); PopulateListView(); this.monthCalendar.DateSelected += new System.Windows.Forms.DateRangeEventHandler(this.monthCalendar_DateSelected); this.listView.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.listView_ItemSelectionChanged); }
/// <summary> /// /// </summary> private void LoadNotifyMenuPlugins() { this.menuItemPluginSep.Visible = false; TaskClerkEngine engContext = AppContext.Current; foreach (LoadableItem pluginItem in AppContext.Current.PluginsProvider.Plugins) { if (pluginItem.IsSubclassOf(typeof(PluginNotifyMenuItem))) { if (pluginItem.CreateInstance() is PluginNotifyMenuItem addinItem) { addinItem.PluginInit(engContext, contextMenu); //addinItem.MenuItem.Tag = addinItem; addinItem.MenuItem.Text = addinItem.MenuText; addinItem.MenuItem.Click += delegate { addinItem.OnClick(EventArgs.Empty); }; contextMenu.MenuItems.Add(0, addinItem.MenuItem); //becase at lease one plugin has been loaded make //sure the seperator is visible. this.menuItemPluginSep.Visible = true; } } } }
/// <summary> /// Initalises a new instance of the eventargs with the /// application engine context as a parameter. /// </summary> /// <param name="context"></param> public EngineEventArgs(TaskClerkEngine context) { _context = context; }
public ToDoItemDialog(TaskClerkEngine engine, ToDoTask toDoTask) { InitializeComponent(); this._engine = engine; this._todoTask = toDoTask; }
public ToDoItemDialog(TaskClerkEngine engine) : this(engine, new ToDoTask()) { }
/// <summary> /// Initializes a new instance of the <see cref="TimesheetPrintFormatter"/> class. /// </summary> /// <param name="engine">The engine.</param> /// <param name="config">The config.</param> public TimesheetPrintFormatter(TaskClerkEngine engine, PrintConfiguration config) : base(engine, config) { }
/// <summary> /// Initializes a new instance of the <see cref="DayPrintFormatter"/> class. /// </summary> /// <param name="engine">The engine.</param> /// <param name="config">The config.</param> public DayPrintFormatter(TaskClerkEngine engine, PrintConfiguration config) : base(engine, config) { }
/// <summary> /// Initalises a new instance of the eventargs with the /// application engine context as a parameter. /// </summary> /// <param name="context"></param> public EngineEventArgs(TaskClerkEngine context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="DayPrintFormatter"/> class. /// </summary> /// <param name="engine">The engine.</param> /// <param name="config">The config.</param> public NoChartDayPrintFormatter(TaskClerkEngine engine, PrintConfiguration config) : base(engine, config) { }