示例#1
0
        public Bot(ITickerModel model, BotConfig config)
        {
            this.model = model;

            this.server     = config.server;
            this.port       = config.port;
            this.nick       = config.nick;
            this.twitchPass = config.twitchPass;
            this.channel    = config.channel;
        }
示例#2
0
        public MainForm()
        {
            InitializeComponent();
            this.model      = new TickerModel();
            this.controller = new TickerController(model, this);
            credentialsForm = new CredentialsForm(model, controller);
            tickerForm      = new TickerForm();

            model.registerBotObserver(this);
        }
示例#3
0
 public TickerController(ITickerModel model, MainForm view) {
     this.model = model;
     this.view = view;
     model.registerMessageObserver(this);
 }
示例#4
0
 public CredentialsForm(ITickerModel model, ITickerController controller)
 {
     InitializeComponent();
     this.model      = model;
     this.controller = controller;
 }