Ejemplo n.º 1
0
        void T_ChooseUser_TradeClosed(object sender, TradeClosedEventArgs e)
        {
            e.ExportArgs = new Dictionary <string, object>();
            List <string> lst = new List <string>();

            foreach (ListViewItem item in listView1.CheckedItems)
            {
                lst.Add(item.Text);
            }
            e.ExportArgs.Add("ChooseList", lst);
        }
Ejemplo n.º 2
0
        void OnTradeClosed(object sender, FormClosedEventArgs e)
        {
            EventHandler <TradeClosedEventArgs> tmp = Interlocked.CompareExchange(ref TradeClosed, null, null);

            if (tmp != null)
            {
                TradeClosedEventArgs args = new TradeClosedEventArgs(_guid, null);
                tmp(sender, args);

                _viewState = args.ExportArgs;
            }
        }