Esempio n. 1
0
        public Guid OpenTrade(string actionName, IDictionary <string, object> importArgs = null)
        {
            var trade = TradeFactory.CreateTrade(actionName);

            if (trade == null)
            {
                return(Guid.Empty);
            }
            else
            {
                trade.ViewState = importArgs;
                return(OpenTrade(trade));
            }
        }
Esempio n. 2
0
        public static IDictionary <string, object> ShowTrade(this ITrade iTrade, string actionName, IDictionary <string, object> importArgs = null)
        {
            var trade = TradeFactory.CreateTrade(actionName);
            var frm   = trade as Form;

            if (frm == null)
            {
                return(null);
            }
            else
            {
                trade.ViewState = importArgs;
                frm.ShowDialog();
                return(trade.ViewState);
            }
        }