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; } }
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); }
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(); }
//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); }