Beispiel #1
0
        private async void ThisWorkbook_Startup(object sender, System.EventArgs e)
        {
            _client = new AgilityClient("http://localhost:50596/");

            var sheet = (Worksheet)ActiveSheet;

            await RefreshBoard();

            _client.RegisterColumnPropertyModified((columnId, property, newValue) => PerformUpdate(() => UpdateColumnProperty(property, _rowNum, sheet, columnId, newValue)));
            _client.RegisterTaskPropertyModified((columnId, property, newValue) => PerformUpdate(() => UpdateTaskProperty(property, _rowNum, sheet, columnId, newValue)));
            _client.RegisterTaskMoved((taskId, columnId) => PerformUpdate(() => UpdateTaskMoved(_rowNum, sheet, taskId, columnId)));

            await _client.Start();

            Application.SheetChange += OnSheetChange;
        }
Beispiel #2
0
        private async void ThisWorkbook_Startup(object sender, System.EventArgs e)
        {
            _client = new AgilityClient("http://localhost:50596/");

            var sheet = (Worksheet)ActiveSheet;
            await RefreshBoard();

            _client.RegisterColumnPropertyModified((columnId, property, newValue) => PerformUpdate(() => UpdateColumnProperty(property, _rowNum, sheet, columnId, newValue)));
            _client.RegisterTaskPropertyModified((columnId, property, newValue) => PerformUpdate(() => UpdateTaskProperty(property, _rowNum, sheet, columnId, newValue)));
            _client.RegisterTaskMoved((taskId, columnId) => PerformUpdate(() => UpdateTaskMoved(_rowNum, sheet, taskId, columnId)));

            await _client.Start();

            Application.SheetChange += OnSheetChange;

        }