예제 #1
0
 private void Drag_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
 {
     _drawBase         = null;
     this.cmain.Cursor = Cursors.Hand;
     UnSelected();
     _slate.Start();
 }
예제 #2
0
 private void Group_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
 {
     _drawBase       = new DrawGroup(_cap);
     _drawBase.CMain = this.cmain;
     DefaultCursor();
     this.bstatus.Content = "当前工具: 组合";
 }
예제 #3
0
        private void Reset_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
        {
            BarButtonItem bbi = sender as BarButtonItem;

            this.bstatus.Content = "当前工具: 无";
            if (_drawBase != null)
            {
                if (_drawBase.Step != 0 && this.cmain.Children.Count > 1)
                {
                    this.cmain.Children.RemoveAt(this.cmain.Children.Count - 1);
                }
                _drawBase = null;
            }
            DefaultCursor();
        }