コード例 #1
0
 private void MouseDownProc_GetFirstPoint(int hWnd, int Button, int Flags, int Xwin, int Ywin, double Xdrw, double Ydrw)
 {
     if(Button == Lcad.LC_LBUTTON)
     {
         xFirstPoint = Xdrw;
         yFirstPoint = Ydrw;
         _EventMouseDown_GetPoint = new F_MOUSEDOWN(MouseDownProc_GetLastPoint);
         Lcad.OnEventMouseDown(_EventMouseDown_GetPoint);
         //hiển thị thông báo
         UserControl_Notify note = new UserControl_Notify("Chọn điểm cuối");
         elementHost1.Child = note;
         note.ShowNotify();
     }
     else
     {
         //tắt thông báo
         UserControl_Notify note = elementHost1.Child as UserControl_Notify;
         note.HideNotify();
         Lcad.OnEventMouseDown(_EventMouseDown_Default);
     }   
 }
コード例 #2
0
 //...
 private void loadFile_FormXayDungLoKhoan(int _soHang, int _soCot, int _khoangCachHang, int _khoangCachCot, double _banKinh, bool _hienThiKichThuoc)
 {
     this.soHang = _soHang;
     this.soCot = _soCot;
     this.khoangCachHang = _khoangCachHang;
     this.khoangCachCot = _khoangCachCot;
     this.banKinh = _banKinh;
     this.banVeChinh.HienKhoangCach = _hienThiKichThuoc;
     this.banVeChinh.DeltaX = Math.Abs(_khoangCachCot);
     this.banVeChinh.DeltaY = Math.Abs(_khoangCachHang);
     Lcad.OnEventMouseDblClk(_EventMouseDbclick_XayDungLuoiLoMin);
     UserControl_Notify note = new UserControl_Notify("Chọn tọa độ");
     elementHost1.Child = note;
     note.ShowNotify();
 }
コード例 #3
0
 private void barButtonItem_KhoanhVungLoKhoan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     _EventMouseDown_GetPoint = new F_MOUSEDOWN(MouseDownProc_GetFirstPoint);
     Lcad.OnEventMouseDown(_EventMouseDown_GetPoint);
     //hiển thị thông báo
     UserControl_Notify note = new UserControl_Notify("Chọn điểm đầu");
     elementHost1.Child = note;
     note.ShowNotify();
 }
コード例 #4
0
 public static void ShowNotifyAutoHide(ElementHost elementHost1, String text)
 {
     UserControl_Notify note = new UserControl_Notify(text);
     elementHost1.Child = note;
     note.ShowNotifyAutoHide();
 }