예제 #1
0
        public EditRequestItemDialog(LocalData local, RequestItem request, IList <ProgramItem> programs)
        {
            this.local    = local;
            this.request  = request;
            this.programs = programs;

            changer = new RequestStateChanger(request, local.CurrentUserID, this);

            InitializeComponent();
            ReadOnly = false;
            UpdateToolbar();
            ReadRequest();
        }
예제 #2
0
 public abstract bool IsRequestVisible(LocalData local, RequestItem item);
예제 #3
0
 public override bool IsRequestVisible(LocalData local, RequestItem item)
 {
     return(!local.KnownRequests.Contains(item.Number));
 }
예제 #4
0
 public override bool IsRequestVisible(LocalData local, RequestItem item)
 {
     return(item.State == State);
 }
예제 #5
0
 public override bool IsRequestVisible(LocalData local, RequestItem item)
 {
     return(true);
 }
예제 #6
0
 public override bool IsRequestVisible(LocalData local, RequestItem item)
 {
     return(item.State != RequestItemState.Fixed);
 }