private void SpawnChart_Click(object sender, RoutedEventArgs e)
 {
     FSBL.RPC("LauncherClient.spawn", new List <JToken> {
         "Advanced Chart",
         new JObject {
         }
     }, (s, a) => { });
 }
        private void SpawnComponent_Click(object sender, RoutedEventArgs e)
        {
            string componentName = ComponentSelect.SelectedValue.ToString();

            FSBL.RPC("LauncherClient.spawn", new List <JToken> {
                componentName,
                new JObject {
                    ["addToWorkspace"] = true
                }
            }, (s, a) => { });
        }
示例#3
0
        private static void OnConnected(object sender, EventArgs e)
        {
            FSBL.RPC("Logger.log", new List <JToken> {
                "Windowless example connected to Finsemble."
            });

            // Send log message every 5 seconds
            timer.Interval  = 5 * 1000;
            timer.AutoReset = true;
            timer.Elapsed  += (s1, e1) => FSBL.RPC("Logger.log", new List <JToken> {
                string.Format("Windowless example elapsed event was raised at {0}", e1.SignalTime)
            });
            timer.Start();
        }
示例#4
0
 public void SetFinsemble(Finsemble fsbl)
 {
     FSBL = fsbl;
     FSBL.RPC("Logger.log", new List <JToken> {
         "Winform example connected to Finsemble. Form3"
     });
 }
示例#5
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     finsemble.RPC("AuthenticationClient.publishAuthorization", new List <JToken>()
     {
         UserName.Text,
         JObject.FromObject(new Credentials(Guid.NewGuid().ToString()))
     }, (s, a) =>
     {
         loggedIn = true;
         this.Close();
     });
 }
示例#6
0
 private void FSBL_Connected(object sender, EventArgs e)
 {
     FSBL.RPC("Logger.error", new List <JToken> {
         "Error Test"
     });
 }