private void mPasswordLineEdit_DragMoveEvent(object sender, QEventArgs <QDragMoveEvent> e) { if (e.Event.MimeData.HasFormat("text/plain")) { e.Event.AcceptProposedAction(); } }
private void mTableWidget_DropEvent(object aSender, QEventArgs <QDropEvent> aEventArgs) { if (aEventArgs.Event.MimeData.HasUrls) { foreach (var url in aEventArgs.Event.MimeData.Urls) { if (url.IsLocalFile) { var localFile = url.ToLocalFile(); if (File.Exists(localFile)) { try { mAgent.AddKeyFromFile(localFile, null, null); } catch (Exception ex) { Debug.Fail(ex.ToString()); } } } } aEventArgs.Event.AcceptProposedAction(); aEventArgs.Handled = true; if (mAgent is AgentClient) { ReloadData(); } } }
private void mTableWidget_DragMoveEvent(object aSender, QEventArgs <QDragMoveEvent> aEventArgs) { if (aEventArgs.Event.MimeData.HasUrls) { aEventArgs.Event.DropAction = DropAction.CopyAction; aEventArgs.Event.Accept(); aEventArgs.Event.AcceptProposedAction(); aEventArgs.Handled = true; } }
private void mPasswordLineEdit_DropEvent(object sender, QEventArgs <QDropEvent> e) { if (e.Event.MimeData.HasFormat("text/plain")) { string strData = e.Event.MimeData.Text; if (strData == null) { Debug.Assert(false); return; } if (mPasswordLineEdit != null) { mPasswordLineEdit.Text = strData; } e.Event.AcceptProposedAction(); } }
private void OnTextPriceFocusOut(object sender, QEventArgs<QFocusEvent> evt) { ValidateUnitPrice(); }
private void OnTextNameFocusOut(object sender, QEventArgs<QFocusEvent> evt) { ValidateName(); }
private void mPasswordLineEdit_DropEvent(object sender, QEventArgs<QDropEvent> e) { if (e.Event.MimeData.HasFormat("text/plain")) { string strData = e.Event.MimeData.Text; if (strData == null) { Debug.Assert(false); return; } if (mPasswordLineEdit != null) { mPasswordLineEdit.Text = strData; } e.Event.AcceptProposedAction(); } }
private void mPasswordLineEdit_DragMoveEvent(object sender, QEventArgs<QDragMoveEvent> e) { if (e.Event.MimeData.HasFormat("text/plain")) { e.Event.AcceptProposedAction(); } }
private void mTableWidget_DropEvent(object aSender, QEventArgs<QDropEvent> aEventArgs) { if (aEventArgs.Event.MimeData.HasUrls) { foreach (var url in aEventArgs.Event.MimeData.Urls) { if (url.IsLocalFile) { var localFile = url.ToLocalFile(); if (File.Exists(localFile)) { try { mAgent.AddKeyFromFile(localFile, null, null); } catch (Exception ex) { Debug.Fail(ex.ToString()); } } } } aEventArgs.Event.AcceptProposedAction(); aEventArgs.Handled = true; if (mAgent is AgentClient) { ReloadData(); } } }
private void mTableWidget_DragMoveEvent(object aSender, QEventArgs<QDragMoveEvent> aEventArgs) { if (aEventArgs.Event.MimeData.HasUrls) { aEventArgs.Event.DropAction = DropAction.CopyAction; aEventArgs.Event.Accept(); aEventArgs.Event.AcceptProposedAction(); aEventArgs.Handled = true; } }
private void OnWidgetKeyReleaseEvent(object sender, QEventArgs<QKeyEvent> evtArgs) { if (tableWidget.Focus) { if (evtArgs.Event.Key == (int)Key.Key_Return || evtArgs.Event.Key == (int)Key.Key_Enter) { var row = tableWidget.CurrentRow; QTableWidgetItem code = tableWidget.Item(row, 0); QTableWidgetItem productName = tableWidget.Item(row, 1); lblSelectedCode.Text = code.Text; lblSelectedName.Text = productName.Text; } } }
private void PassphraseDialog_ShowEvent(object aSender, QEventArgs<QShowEvent> aEventArgs) { mSecureEdit.Attach(mPassphraseLineEdit, true); mPassphraseLineEdit.FocusWidget(); }
private void PassphraseDialog_HideEvent(object aSender, QEventArgs<QHideEvent> aEventArgs) { mSecureEdit.Detach(); }
private void PassphraseDialog_HideEvent(object aSender, QEventArgs <QHideEvent> aEventArgs) { mSecureEdit.Detach(); }
private void PassphraseDialog_ShowEvent(object aSender, QEventArgs <QShowEvent> aEventArgs) { mSecureEdit.Attach(mPassphraseLineEdit, true); mPassphraseLineEdit.FocusWidget(); }