예제 #1
0
 void StartExtensions(ISquiggleContext context)
 {
     foreach (IExtension extension in Extensions)
     {
         extension.Start(context);
     }
 }
예제 #2
0
        public override async Task <IDictionary <string, object> > LaunchInviteUI(ISquiggleContext context, IChatWindow window)
        {
            string fileName = String.Format("Screenshot_{0:yyMMddHHmmss}.jpg", DateTime.Now);

            var chatWindow = ((Window)window);

            chatWindow.WindowState = WindowState.Minimized;

            await Task.Delay(1.Seconds());

            Stream stream = CaptureScreen();

            window.Restore();

            var args = new Dictionary <string, object>()
            {
                { "name", fileName },
                { "content", stream },
                { "size", stream.Length }
            };

            stream.Seek(0, SeekOrigin.Begin);

            return(args);
        }
예제 #3
0
 public Task <IDictionary <string, object> > LaunchInviteUI(ISquiggleContext context, IChatWindow window)
 {
     throw new NotImplementedException();
 }
예제 #4
0
        public void LoadAll(ISquiggleContext context)
        {
            AuthenticationProvider = AuthenticationProvider ?? new DefaultAuthenticationProvider();

            StartExtensions(context);
        }
예제 #5
0
 public HistoryViewer(ISquiggleContext context) : this()
 {
     chatHistory.SquiggleContext = context;
 }