예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            var workflow = new WorkflowCollection();

            workflow.Add(new KanbanWorkflow()
            {
                Category = "Open", AllowedTransitions = { "InProgress", "Closed", "Closed NoChanges", "Won't Fix" }
            });
            workflow.Add(new KanbanWorkflow()
            {
                Category = "Postponed", AllowedTransitions = { "Open", "InProgress", "Closed", "Closed NoChanges", "Won't Fix" }
            });
            workflow.Add(new KanbanWorkflow()
            {
                Category = "Review", AllowedTransitions = { "InProgress", "Closed", "Postponed" }
            });

            workflow.Add(new KanbanWorkflow()
            {
                Category = "InProgress", AllowedTransitions = { "Review", "Postponed" }
            });

            Kanban.Workflows = workflow;
        }
예제 #2
0
        public Pizza_Hut()
        {
            this.InitializeComponent();
            var workflow = new WorkflowCollection();

            workflow.Add(new KanbanWorkflow()
            {
                Category = "Menu", AllowedTransitions = { "Dining", "Delivery" }
            });
            workflow.Add(new KanbanWorkflow()
            {
                Category = "Dining", AllowedTransitions = { "Ready to Serve" }
            });
            workflow.Add(new KanbanWorkflow()
            {
                Category = "Delivery", AllowedTransitions = { "Ready to Delivery" }
            });
            kanban.Workflows = workflow;
        }
예제 #3
0
        public MainWindow()
        {
            InitializeComponent();
            var workflow = new WorkflowCollection();

            workflow.Add(new KanbanWorkflow()
            {
                Category = "Open", AllowedTransitions = { "InProgress", "Closed", "Closed NoChanges", "Won't Fix" }
            });
            workflow.Add(new KanbanWorkflow()
            {
                Category = "Postponed", AllowedTransitions = { "Open", "InProgress", "Closed", "Closed NoChanges", "Won't Fix" }
            });
            workflow.Add(new KanbanWorkflow()
            {
                Category = "Review", AllowedTransitions = { "InProgress", "Closed", "Postponed" }
            });
            workflow.Add(new KanbanWorkflow()
            {
                Category = "InProgress", AllowedTransitions = { "Review", "Postponed" }
            });

            Kanban.Workflows = workflow;

            SQLiteConnection Connection = new SQLiteConnection("Data Source=" + Environment.CurrentDirectory + Properties.Settings.Default.DBPath);

            Connection.Open();
            DataContext db = new DataContext(Connection);

            Table <TeamMember>      TeamMembers = db.GetTable <TeamMember>();
            IQueryable <TeamMember> tmmb        = (from tm in TeamMembers
                                                   where tm.TeamID == 1
                                                   select tm);


            foreach (TeamMember tm in tmmb)
            {
                try
                {
                    ComboBoxItem cbItm = new ComboBoxItem();
                    cbItm.Tag     = tm;
                    cbItm.Content = tm.Name;
                    TaskTeamMember.Items.Add(cbItm);
                }
                catch { }

                try
                {
                    ComboBoxItem cbItm = new ComboBoxItem();
                    cbItm.Tag     = tm;
                    cbItm.Content = tm.Name;
                    CardAuthorFilter.Items.Add(cbItm);
                }
                catch { }
            }

            Table <Sprint>      Sprints = db.GetTable <Sprint>();
            IQueryable <Sprint> sprts   = (from sp in Sprints
                                           select sp);

            foreach (Sprint sp in Sprints)
            {
                ComboBoxItem spItm = new ComboBoxItem();
                spItm.Tag     = sp;
                spItm.Content = "Sprint " + sp.ID.ToString() + " (" + sp.DateStart.ToString() + "-" + sp.DateEnd.ToString() + ")";
                SprintFilter.Items.Add(spItm);
            }
        }