Beispiel #1
0
 public MainForm()
 {
     InitializeComponent();
     try
     {
         soapClient = new ServerWinFormGUI.ServerInterface.ServerInterfaceSoapClient();
         processer = new MWRProcesser(new ServerProxy(soapClient), ConfigurationManager.AppSettings["MachineGuid"], ConfigurationManager.AppSettings["AuthorizationToken"]);
         processer.StateMessage += new TextNotifier(processer_StateMessage);
         processer.StateUpdated += new TextNotifier(processer_StateUpdated);
         processer.StateProcessed += new TextNotifier(processer_StateProcessed);
         processer.TaskMessage += new TextNotifier(processer_TaskMessage);
         processer.TaskUpdated += new TextNotifier(processer_TaskUpdated);
         processer.TaskProcessed += new TextNotifier(processer_TaskProcessed);
         lbStateLoaded.Text = processer.StatesLoaded.ToString();
         lbTaskLoaded.Text = processer.TasksLoaded.ToString();
     }
     catch (Exception exc)
     {
         MessageBox.Show("Wystąpił błąd podczas inicjalizacji - " + exc.ToString());
     }
 }
Beispiel #2
0
 public ServerProxy(ServerInterface.ServerInterfaceSoapClient client)
 {
     soapClient = client;
 }