private void Drag_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e) { _drawBase = null; this.cmain.Cursor = Cursors.Hand; UnSelected(); _slate.Start(); }
private void Group_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e) { _drawBase = new DrawGroup(_cap); _drawBase.CMain = this.cmain; DefaultCursor(); this.bstatus.Content = "当前工具: 组合"; }
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(); }