Beispiel #1
0
        public async Task <ClientColumn> AddColumn(string userID, ClientColumn column)
        {
            Column insert = column.Convert();

            insert.userID = userID;
            columns.Add(insert);
            return(new ClientColumn(insert));
        }
Beispiel #2
0
        public async Task <ClientColumn> UpdateColumn(string userID, ClientColumn column)
        {
            Column update = column.Convert();

            columns.Insert(
                columns.IndexOf(
                    columns.AsEnumerable().FirstOrDefault(item => item.ID == update.ID && item.userID == userID)
                    ), update);
            return(new ClientColumn(update));
        }
Beispiel #3
0
        private async Task <ClientColumn> Populate(Column column)
        {
            ClientColumn client = new ClientColumn(column);

            foreach (var issueid in column.issues)
            {
                var issue = issues.Find(issue => issue.ID == issueid);
                if (issue == null)
                {
                    continue;
                }
                var relevantClass = classes.Find(item => item.ID == issue.relevantClass);
                var clientIssue   = new ClientIssue(issue);
                clientIssue.relevantClass = relevantClass;
                if (issue.labels != null)
                {
                    clientIssue.labels = labels.FindAll(item => issue.labels.Contains(item.ID));
                }
                client.issues.Add(clientIssue);
            }
            return(client);
        }
 public async Task <ActionResult <ClientColumn> > UpdateClass(ClientColumn updated)
 {
     return(await cr.UpdateColumn(HttpContext.Items["UserID"].ToString(), updated));
 }
 public async Task <ActionResult <ClientColumn> > AddColumn(ClientColumn column)
 {
     return(await cr.AddColumn(HttpContext.Items["UserID"].ToString(), column));
 }
Beispiel #6
0
        void ReleaseDesignerOutlets()
        {
            if (BufferSizeInput != null)
            {
                BufferSizeInput.Dispose();
                BufferSizeInput = null;
            }

            if (BufferSizeSlider != null)
            {
                BufferSizeSlider.Dispose();
                BufferSizeSlider = null;
            }

            if (ChatMessageInput != null)
            {
                ChatMessageInput.Dispose();
                ChatMessageInput = null;
            }

            if (ChatMessageList != null)
            {
                ChatMessageList.Dispose();
                ChatMessageList = null;
            }

            if (ClientList != null)
            {
                ClientList.Dispose();
                ClientList = null;
            }

            if (ClientTable != null)
            {
                ClientTable.Dispose();
                ClientTable = null;
            }

            if (ClientColumn != null)
            {
                ClientColumn.Dispose();
                ClientColumn = null;
            }

            if (NameInput != null)
            {
                NameInput.Dispose();
                NameInput = null;
            }

            if (PortInput != null)
            {
                PortInput.Dispose();
                PortInput = null;
            }

            if (SendButton != null)
            {
                SendButton.Dispose();
                SendButton = null;
            }

            if (StartButton != null)
            {
                StartButton.Dispose();
                StartButton = null;
            }

            if (StatusIndicator != null)
            {
                StatusIndicator.Dispose();
                StatusIndicator = null;
            }

            if (StatusIndicatorText != null)
            {
                StatusIndicatorText.Dispose();
                StatusIndicatorText = null;
            }
        }