Пример #1
0
        private void bGreeting_Click( object sender, EventArgs e ) {
            TextEditorPopup popup = new TextEditorPopup( Paths.GreetingFileName,
@"Welcome to {SERVER_NAME}
Your rank is {RANK}&S. Type &H/help&S for help." );
            popup.ShowDialog();
        }
Пример #2
0
 private void bAnnouncements_Click( object sender, EventArgs e ) {
     TextEditorPopup popup = new TextEditorPopup( Paths.AnnouncementsFileName, "" );
     popup.ShowDialog();
 }
Пример #3
0
 private void bRules_Click( object sender, EventArgs e ) {
     TextEditorPopup popup = new TextEditorPopup( Paths.RulesFileName, "Use common sense!" );
     popup.ShowDialog();
 }
Пример #4
0
 private void bRules_Click( object sender, EventArgs e )
 {
     TextEditorPopup popup = new TextEditorPopup( "rules.txt", "Use common sense!" );
     popup.ShowDialog();
 }