Пример #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;
 }
        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 MainWindow()
 {
     try
     {
         InitializeComponent();
         this.ExchangeDataManager = new ExchangeDataManager(this._Media);
         this._CommonDialogWin = new CommonDialogWin(this.MainFrame);
         this._ConfirmDialogWin = new ConfirmDialogWin(this.MainFrame);
         this._ConfirmOrderDialogWin = new ConfirmOrderDialogWin(this.MainFrame);
         this._OrderHandle = new OrderHandle();
         this._LayoutManager = new LayoutManager(this, this.OnAddContentPane);
     }
     catch(Exception exception)
     {
         Logger.TraceEvent(TraceEventType.Error, "MainWindow ctor: \r\n{0}", exception);
     }
 }
 void onLoad(object sender, RoutedEventArgs e)
 {
     this._CommonDialogWin = new CommonDialogWin(this.LayoutRoot);
     this._ConfirmDialogWin = new ConfirmDialogWin(this.LayoutRoot);
     this.AttachEvent();
     this.InitData();
     this.BindGridData();
     this.TimerHandle();
 }
 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;
 }
 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;
 }
        private void InitializeData()
        {
            this._ProcessLmtOrder = this._App.ExchangeDataManager.ProcessLmtOrder;
            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;
            this._HiddenStoryboard = this.Resources["HidBorderStoryboard"] as Storyboard;
            this._ShowStoryboard = this.Resources["ShowBorderStoryboard"] as Storyboard;
        }
        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;
        }