Example #1
0
 public Eksport(string savePath, bool send, SendProtocol p, string licensePath, string password)
 {
     this.p1 = p;
     this.InitializeComponent();
     this.licensePath = licensePath;
     this.con         = new Connection();
     this.c           = new Certificate();
     this.savePath    = savePath;
     if (send)
     {
         this.Text       = "Wysyłanie protokołu na serwer";
         this.log.Click -= new System.EventHandler(this.log_Click);
         this.log.Click += new System.EventHandler(this.send_Click);
     }
     else
     {
         this.Text       = "Wysyłanie protokołu";
         this.log.Click += new System.EventHandler(this.log_Click);
         this.log.Click -= new System.EventHandler(this.send_Click);
     }
     this.pass = password;
     this.path = (this.path = System.IO.Path.GetTempPath() + "KBW");
     this.send();
 }
Example #2
0
        public override void Deserialize(ElementPropertyBag epb)
        {
            base.Deserialize(epb);
            string name;

            if (Json.TryGetValue("ClickEventName", out name))
            {
                ClickEventName = name;
            }

            string data;

            if (Json.TryGetValue("ClickEventData", out data))
            {
                ClickEventData = data;
            }

            string sendProtocol;

            if (Json.TryGetValue("SendProtocol", out sendProtocol))
            {
                SendProtocol = (SendProtocol)Enum.Parse(typeof(SendProtocol), sendProtocol);
            }
        }
Example #3
0
 public Eksport(string savePath, bool send, SendProtocol p, string licensePath, string password)
 {
     this.p1 = p;
     this.InitializeComponent();
     this.licensePath = licensePath;
     this.con = new Connection();
     this.c = new Certificate();
     this.savePath = savePath;
     if (send)
     {
         this.Text = "Wysyłanie protokołu na serwer";
         this.log.Click -= new System.EventHandler(this.log_Click);
         this.log.Click += new System.EventHandler(this.send_Click);
     }
     else
     {
         this.Text = "Wysyłanie protokołu";
         this.log.Click += new System.EventHandler(this.log_Click);
         this.log.Click -= new System.EventHandler(this.send_Click);
     }
     this.pass = password;
     this.path = (this.path = System.IO.Path.GetTempPath() + "KBW");
     this.send();
 }