Exemplo n.º 1
0
 public MainForm()
 {
     InitializeComponent();
     synchronizationContext = SynchronizationContext.Current;
     ClientSettings = Settings.Instance;
     Client.OnConsoleWrite += Client_OnConsoleWrite;
     Instance = this;
 }
Exemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();
            synchronizationContext = SynchronizationContext.Current;
            ClientSettings = Settings.Instance;
            Client.OnConsoleWrite += Client_OnConsoleWrite;
            Client.OnStopBot += stopBot;
            Instance = this;

            this.Text += " v" + Assembly.GetExecutingAssembly().GetName().Version;
            this.CenterToScreen();
        }