Beispiel #1
0
        public ChatForm(IOperatorServiceAgent agent)
        {
            this.operatorServiceAgent = agent;
            InitializeComponent();

            chatMessageViewerControl1.ResetContent("初始会话...");
        }
Beispiel #2
0
        public ChatForm(IOperatorServiceAgent agent)
        {
            this.operatorServiceAgent = agent;
            InitializeComponent();

            chatMessageViewerControl1.ResetContent("初始会话...");
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            foreach (var item in args)
            {
                if (item.StartsWith("/dv"))
                {
                    dumpVersionFile();
                    return;
                }
                else if (item.StartsWith("/us"))
                {
                    upgradeSettings();
                    return;
                }
            }

            //  Test();
            // return;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
            TextWriterTraceListener listener1 = new TextWriterTraceListener("MyListener.log");

            listener1.TraceOutputOptions = TraceOptions.DateTime | TraceOptions.ThreadId;
            Trace.Listeners.Add(listener1);
            Trace.AutoFlush      = true;
            OperaterServiceAgent = OperatorServiceAgent.Default;
            //OperaterServiceAgent = new OperatorServiceAgentMock();
            OperaterServiceAgent.ProductVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            LoginForm f = new LoginForm();

            f.OperatorServiceAgent = OperaterServiceAgent;

            Application.Run(f);


            OperaterServiceAgent.Logout();

            //
            //TestFileUploadControl();
            //TestOptionForm();
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            foreach (var item in args)
            {
                if (item.StartsWith("/dv"))
                {
                    dumpVersionFile();
                    return;
                }
                else if (item.StartsWith("/us"))
                {
                    upgradeSettings();
                    return;
                }
            }

              //  Test();
               // return;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
            TextWriterTraceListener listener1 = new TextWriterTraceListener("MyListener.log");
            listener1.TraceOutputOptions = TraceOptions.DateTime | TraceOptions.ThreadId;
            Trace.Listeners.Add(listener1);
            Trace.AutoFlush = true;
            OperaterServiceAgent = OperatorServiceAgent.Default;
            //OperaterServiceAgent = new OperatorServiceAgentMock();
            OperaterServiceAgent.ProductVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            LoginForm f = new LoginForm();
            f.OperatorServiceAgent = OperaterServiceAgent;

            Application.Run(f);

                OperaterServiceAgent.Logout();

            //
            //TestFileUploadControl();
            //TestOptionForm();
        }
Beispiel #5
0
 public MainForm(IOperatorServiceAgent agent, DateTime loginTime)
 {
     InitializeComponent();
     this.loginTime = loginTime;
     this.operaterServiceAgent = agent;
 }