コード例 #1
0
 public OrderHandle()
 {
     this._App = ((ManagerConsole.MainWindow)Application.Current.MainWindow);
     this._CommonDialogWin = this._App._CommonDialogWin;
     this._ConfirmDialogWin = this._App._ConfirmDialogWin;
     this.ConfirmOrderDialogWin = this._App._ConfirmOrderDialogWin;
     this.ConfirmOrderDialogWin.OnConfirmDialogResult += new ConfirmOrderDialogWin.ConfirmDialogResultHandle(ExecuteOrderHandle);
     this.ConfirmOrderDialogWin.OnModifyPriceDialogResult += new ConfirmOrderDialogWin.ConfirmModifyPriceResultHandle(ModifyPriceHandle);
     this.ConfirmOrderDialogWin.OnRejectOrderDialogResult += new ConfirmOrderDialogWin.RejectOrderResultHandle(RejectOrderHandle);
     this._TranPhaseManager = this._App.InitDataManager.TranPhaseManager;
 }
コード例 #2
0
        public DQOrderTaskControl()
        {
            InitializeComponent();

            this._App = ((ManagerConsole.MainWindow)Application.Current.MainWindow);
            this._AccountInfoConfirm = new ExcuteOrderConfirm();

            this._CommonDialogWin = this._App._CommonDialogWin;
            this._ConfirmDialogWin = this._App._ConfirmDialogWin;
            this._ConfirmOrderDialogWin = this._App._ConfirmOrderDialogWin;
            this.OrderHandle = this._App.OrderHandle;
            //this._ConfirmOrderDialogWin.OnConfirmDialogResult += new ConfirmOrderDialogWin.ConfirmDialogResultHandle(ExcuteOrder);
            this.BindGridData();
        }
コード例 #3
0
 public DealingLmtOrder()
 {
     InitializeComponent();
     this._App = ((ManagerConsole.MainWindow)Application.Current.MainWindow);
     Thread thread = new Thread(new ThreadStart(delegate()
     {
         while (!this.InilizeUI())
         {
             Thread.Sleep(800);
         }
     }));
     thread.IsBackground = true;
     thread.Start();
 }
コード例 #4
0
        public NewTaskWindow(EditMode editMode, TaskScheduler taskScheduler)
        {
            InitializeComponent();
            this._App = ((ManagerConsole.MainWindow)Application.Current.MainWindow);
            this._EditMode = editMode;

            if (this._EditMode == EditMode.AddNew)
            {
                this._TaskScheduler = new TaskScheduler();
                this._TaskScheduler.IsEditorName = true;
                this.LoadParameterSetting();
            }
            else
            {
                this._EditorTaskScheduler = taskScheduler.Clone();
                this.SettingsUIBinding();
            }
            this._IsLoaded = true;
        }
コード例 #5
0
 private void BindingData()
 {
     this._App = (ManagerConsole.MainWindow)Application.Current.MainWindow;
     this._Model = this._App.ExchangeDataManager.ExecuteOrderSummaryItemModel;
     this._ExecutedOrderListGrid.ItemsSource = this._App.ExchangeDataManager.ExecutedOrders;
     this.GetComboListData();
 }
コード例 #6
0
 private void InitializeUI()
 {
     this._App = ((ManagerConsole.MainWindow)Application.Current.MainWindow);
     this._CommonDialogWin = this._App._CommonDialogWin;
     this._ConfirmDialogWin = this._App._ConfirmDialogWin;
     this._QuotePriceClientModel = this._App.ExchangeDataManager.QuotePriceClientModel;
     this._CurrentInstrumentStyle = Application.Current.Resources["QuoteInstrumentStyle"] as Style;
     this._NormalStyle = Application.Current.Resources["CellControlStyle"] as Style;
 }
コード例 #7
0
 private void InitData()
 {
     this._App = ((ManagerConsole.MainWindow)Application.Current.MainWindow);
     this._CommonDialogWin = this._App.CommonDialogWin;
     this._ConfirmDialogWin = this._App.ConfirmDialogWin;
     this._ClientQuotePriceForInstrument = null;// this._App.InitDataManager.QuotePriceClients;
 }
コード例 #8
0
        private void InitializeData()
        {
            this._App = ((ManagerConsole.MainWindow)Application.Current.MainWindow);
            this._CommonDialogWin = this._App._CommonDialogWin;
            this._ConfirmDialogWin = this._App._ConfirmDialogWin;

            Color bgColor = Colors.Transparent;
            Style style = new Style(typeof(Infragistics.Controls.Grids.CellControl));
            style.Setters.Add(new Setter(BackgroundProperty, new SolidColorBrush(bgColor)));
            this._NormalStyle = this.Resources["CellStyle"] as Style;
            this._ExecuteStatusStyle = App.Current.Resources["ExecuteSatusCellStyle"] as Style;
        }