Example #1
0
        public void OnClientProcessing(object sender, SvnProcessingEventArgs e)
        {
            SvnCommandType type = e.CommandType;

            _start   = DateTime.UtcNow;
            _curBuck = 0;
            for (int i = 0; i < _buckets.Length; i++)
            {
                _buckets[i] = 0;
            }

            Enqueue(delegate()
            {
                lock (_instanceLock)
                {
                    _progressCalc.Clear();
                }
                ListViewItem item = new ListViewItem("Action");
                item.SubItems.Add(type.ToString());
                item.ForeColor = Color.Gray;

                if (actionList.Items.Count == 1 && _toAdd.Count == 0)
                {
                    actionList.Items.Clear();
                }
                actionList.Items.Add(item);
            });
        }
Example #2
0
             /// <summary>
             /// 处理某项操作
             /// </summary>
             /// <param name="sender"></param>
             /// <param name="e"></param>
            private void SC_Processing(object sender, SvnProcessingEventArgs e)
            
    {
                    Console.SetCursorPosition(0, Console.CursorTop);

                    Console.Write("正在处理操作" + e.CommandType.ToString() + ".......");

                
    }
Example #3
0
        /// <summary>
        /// 处理某项操作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SC_Processing(object sender, SvnProcessingEventArgs e)
        {
            Console.SetCursorPosition(0, Console.CursorTop);
            Console.Write("正在处理操作" + e.CommandType.ToString() + ".......");
        }
Example #4
0
        public void OnClientProcessing(object sender, SvnProcessingEventArgs e)
        {
            SvnCommandType type = e.CommandType;

            _start = DateTime.UtcNow;
            _curBuck = 0;
            for (int i = 0; i < _buckets.Length; i++)
                _buckets[i] = 0;

            Enqueue(delegate()
            {
                lock (_instanceLock)
                {
                    _progressCalc.Clear();
                }
                ListViewItem item = new ListViewItem("Action");
                item.SubItems.Add(type.ToString());
                item.ForeColor = Color.Gray;

                if (actionList.Items.Count == 1 && _toAdd.Count == 0)
                    actionList.Items.Clear();
                actionList.Items.Add(item);
            });
        }
Example #5
0
 private static void client_Processing(object sender, SvnProcessingEventArgs e)
 {
     Console.WriteLine("Complete {0}", e.CommandType);
 }