public override void Init(ClientUI.UserObjectEventArgs args) { base.Init(args); this.args = args; nameLabel.Text = info.name; }
void myTimer_TickerEntered(object sender, EventArgs e) { myTimer.Stop(); myTimer.Tick -= myTimer_TickerEntered; ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "STOCK_DIRECT_QTY"; args.data["PERSON_INFO"] = info; args.data["COMPANY_INFO"] = stockInfo; RaiseNextObjectEvent(args); }
void myTimer_QtyEntered(object sender, EventArgs e) { myTimer.Stop(); myTimer.Tick -= myTimer_QtyEntered; ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "STOCK_ADD_OPERATION"; args.data["PERSON_INFO"] = info; args.data["CYCLE"] = lastCycle; args.data["COMPANY_INFO"] = stockInfo; args.data["QTY"] = qty; RaiseNextObjectEvent(args); }
private void queryBox_KeyDown(object sender, KeyEventArgs e) { OnKeyDown(sender, e); if (e.Modifiers == Keys.None && e.KeyCode == Keys.Enter) { if (queryBox.Text.Trim().Length > 0) { ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "TABLE"; args.data["PERSON_INFO"] = info; args.data["SEARCH_STRING"] = queryBox.Text; RaiseNextObjectEvent(args); } } }
private void baseTableView_KeyDown(object sender, KeyEventArgs e) { OnKeyDown(sender, e); if (!e.Handled) { if (e.Modifiers == Keys.None && e.KeyCode == Keys.Enter) { if (baseTableView.SelectedRows.Count == 1) { UInt64 id = Convert.ToUInt64(baseTableView.SelectedRows[0].Cells["ID"].Value); if (id > 0) { ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "FULLINFO"; args.data["PERSON_INFO"] = info; args.data["SEARCH_STRING"] = searchString; args.data["INFO_ABOUT"] = id; RaiseNextObjectEvent(args); } } } } }
void myTimer_TickNews(object sender, EventArgs e) { myTimer.Stop(); myTimer.Tick -= myTimer_TickNews; ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "NEWS"; args.data["PERSON_INFO"] = info; RaiseNextObjectEvent(args); }
void myTimer_TickSuccess(object sender, EventArgs e) { myTimer.Stop(); myTimer.Tick -= myTimer_TickSuccess; ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "START"; RaiseNextObjectEvent(args); }
void myTimer_TickRequests(object sender, EventArgs e) { myTimer.Stop(); myTimer.Tick -= myTimer_TickRequests; ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "STOCK_REQUESTS"; args.data["PERSON_INFO"] = info; RaiseNextObjectEvent(args); }
void myTimer_TickDirect(object sender, EventArgs e) { myTimer.Stop(); myTimer.Tick -= myTimer_TickDirect; ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "STOCK_DIRECT"; args.data["PERSON_INFO"] = info; RaiseNextObjectEvent(args); }
void processPrice() { UInt64 price = 0; try { Decimal dollarPrice = Convert.ToDecimal(priceBox.Text); price = (UInt64)(dollarPrice * 100); infoLabel.Text = ""; } catch (Exception) { } if (price == 0) { infoLabel.Text = "Стоимость введена неправильно"; infoLabel.ForeColor = Color.Red; return; } ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "STOCK_DIRECT_RECIPIENT"; args.data["PERSON_INFO"] = info; args.data["COMPANY_INFO"] = companyInfo; args.data["QTY"] = qty; args.data["PRICE"] = price; RaiseNextObjectEvent(args); }
void TickAccept(object sender, EventArgs e) { myTimer.Stop(); myTimer.Tick -= TickAccept; ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "AMOUNT"; args.data["PERSON_INFO"] = info; RaiseNextObjectEvent(args); }
void TickAccept(object sender, EventArgs e) { myTimer.Stop(); myTimer.Tick -= TickAccept; ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "STOCK_DIRECT_RECEIVER_PINCODE"; args.data["PERSON_INFO"] = info; args.data["COMPANY_INFO"] = companyInfo; args.data["QTY"] = qty; args.data["PRICE"] = price; args.data["RECEIVER_INFO"] = receiverInfo; RaiseNextObjectEvent(args); }
void TickReject(object sender, EventArgs e) { myTimer.Stop(); myTimer.Tick -= TickReject; ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "START"; RaiseNextObjectEvent(args); }
void TryDeleteRequest() { ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "STOCK_DELETE_REQUEST_CONFURMATION"; args.data["PERSON_INFO"] = info; args.data["ROW"] = existingRequests.Rows[requestsView.SelectedRows[0].Index]; RaiseNextObjectEvent(args); }
void myTimer_TickToAnswer(object sender, EventArgs e) { myTimer.Tick -= myTimer_TickToAnswer; myTimer.Stop(); getDatabase().addQuestionForSession(sessionId, questionId); ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "WAITING"; args.data["PERSON_INFO"] = info; args.data["SESSION_ID"] = sessionId; args.data["VALUE"] = value; args.data["MIDDLE"] = middle; args.data["QUESTION_ID"] = questionId; args.data["QUESTION_NUM"] = questionNum + 1; args.data["QUESTION_TEXT"] = Convert.ToString(dataGridView.SelectedRows[0].Cells["TEXT"].Value); RaiseNextObjectEvent(args); }
void myTimer_TickEscape(object sender, EventArgs e) { myTimer.Tick -= myTimer_TickEscape; myTimer.Stop(); ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "EXITING"; args.data["PERSON_INFO"] = info; args.data["SESSION_ID"] = sessionId; args.data["VALUE"] = value; args.data["MIDDLE"] = middle; args.data["WHERE"] = "QUESTION"; RaiseNextObjectEvent(args); }
void myTimer_Success(object sender, EventArgs e) { myTimer.Stop(); myTimer.Tick -= myTimer_Success; ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "QUESTION"; short localValue = 0; switch (info.genome) { case Database.FullPersonInfo.Genome.Human: localValue = answerInfo.humanValue; break; case Database.FullPersonInfo.Genome.Android: localValue = answerInfo.androidValue; break; } value += localValue; middle = (double)value / (double)questionNum; bar.RealValue = Math.Abs(Convert.ToInt32(middle * 20)); args.data["PERSON_INFO"] = info; args.data["SESSION_ID"] = sessionId; args.data["VALUE"] = value; args.data["MIDDLE"] = middle; RaiseNextObjectEvent(args); }
void processQty() { UInt64 qty = 0; try { qty = Convert.ToUInt64(qtyBox.Text); infoLabel.Text = ""; } catch (Exception) { } if (qty == 0) { infoLabel.Text = "Количество введено неправильно"; infoLabel.ForeColor = Color.Red; return; } ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "STOCK_DIRECT_PRICE"; args.data["PERSON_INFO"] = info; args.data["COMPANY_INFO"] = companyInfo; args.data["QTY"] = qty; RaiseNextObjectEvent(args); }
void TryNewRequest() { ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "STOCK_ADD_REQUEST_TICKER"; args.data["PERSON_INFO"] = info; args.data["CYCLE"] = lastCycle; RaiseNextObjectEvent(args); }
void Cancel() { ClientUI.UserObjectEventArgs args = new ClientUI.UserObjectEventArgs(); args.NextObject = "START"; RaiseNextObjectEvent(args); }