Example #1
0
        private void btn_Show(object sender, RoutedEventArgs e)
        {
            try
            {
                switch (Int32.Parse(((Button)sender).Tag.ToString()))
                {
                case 1:
                {
                    this.state = CURRENT.BOOKS;
                    FillList();
                } break;

                case 2:
                {
                    this.state = CURRENT.AUTHORS;
                    FillList();
                } break;

                case 3:
                {
                    this.state = CURRENT.FILES;
                    FillList();
                } break;
                }
            }
            catch (Exception ex)
            {
                this.errors.Text = ex.Message + '\n' + this.errors.Text;
            }
        }
Example #2
0
        public FolderManager2(HeaderControl hcCurrent, HeaderControl hcRevision)
        {
            hc[CURRENT.Value()]  = hcCurrent;
            hc[REVISION.Value()] = hcRevision;

            hc[CURRENT.Value()].FolderRoute.PathChange += OnCurrentPathChangeEvent;

            this.hcCurrent  = hcCurrent;
            this.hcRevision = hcRevision;

            hcCurrent.FolderRoute.PathChange += OnCurrentPathChangeEvent;

//			hcCurrent.SetPathChangeEventHandler(OnRevisionPathChangeEvent);
//			hcCurrent.SetSelectFolderEventHandler(OnRevisionSelectFolderEvent);
//			hcCurrent.SetFavoritesEventHandler(OnRevisionFavoriteEvent);
//			hcCurrent.SetHistoryEventHandler(OnRevisionHistoryEvent);
//
//			hcRevision.SetPathChangeEventHandler(OnRevisionPathChangeEvent);
//			hcRevision.SetSelectFolderEventHandler(OnRevisionSelectFolderEvent);
//			hcRevision.SetFavoritesEventHandler(OnRevisionFavoriteEvent);
//			hcRevision.SetHistoryEventHandler(OnRevisionHistoryEvent);

            ConfigSavedFolders();

            SavedFoldersDebugSupport.Instance.
            ConfigSavedFoldersDebugSupport(svfMgr[HISTORY.Value()], svfMgr[FAVORITES.Value()]);

            getPriorFolder();

            configHeader(this.hcCurrent);
            configHeader(this.hcRevision);
        }
Example #3
0
 public MainWindow()
 {
     InitializeComponent();
     db = uow.db;
     //bookrepo = new BasicRepo<Book>(db);
     //authrepo = new BasicRepo<Author>(db);
     //filerepo = new BasicRepo<File>(db);
     bookrepo = uow.BookRepository;
     authrepo = uow.AuthorRepository;
     filerepo = uow.FileRepository;
     state    = CURRENT.BOOKS;
     FillList();
     FillForm();
 }
Example #4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: protected static void writeLogEntryHeader(byte type, org.neo4j.storageengine.api.WritableChannel channel) throws java.io.IOException
        protected internal static void WriteLogEntryHeader(sbyte type, WritableChannel channel)
        {
            channel.Put(CURRENT.byteCode()).put(type);
        }