Exemple #1
0
        //Interface
        public winSchedule(ScheduleNode node, Mediator mediator)
        {
            //Constructor
            try {
                //Required for designer support
                InitializeComponent();
                #region Menu identities (used for onclick handlers)
                this.ctxOpen.Text   = CTX_OPEN;
                this.ctxPrint.Text  = CTX_PRINT;
                this.ctxUndo.Text   = CTX_UNDO;
                this.ctxCut.Text    = CTX_CUT;
                this.ctxCopy.Text   = CTX_COPY;
                this.ctxPaste.Text  = CTX_PASTE;
                this.ctxDelete.Text = CTX_DELETE;
                this.ctxMoveTo.Text = CTX_MOVETO;
                this.ctxCopyTo.Text = CTX_COPYTO;
                #endregion

                //Set references and services
                this.mNode     = node;
                this.mSchedule = node.Schedule;
                this.mSchedule.ScheduleChanged += new EventHandler(OnScheduleChanged);
                this.mViews = new LayoutViews(this.mSchedule.ScheduleName, mediator);
                this.mViews.ViewsChanged           += new EventHandler(OnViewsChanged);
                this.mViews.ActiveView.ViewChanged += new EventHandler(OnViewChanged);
                this.mGridSvc = new UltraGridSvc(this.grdSchedule);
                this.Text     = this.mSchedule.ScheduleName;
            }
            catch (Exception ex) { throw ex; }
        }
Exemple #2
0
 //Interface
 public dlgViews(LayoutViews views)
 {
     //Required for Windows Form Designer support
     try {
         InitializeComponent();
         this.mViews = views;
         this.mViews.ViewsChanged += new EventHandler(OnViewsChanged);
         this.mLayoutDS            = new LayoutDS();
     }
     catch (Exception ex) { throw ex; }
 }