Пример #1
0
 public Viewer(Parameters p)
 {
     InitializeComponent();
     Brokers = new List<BrokerFile>();
     Params = p;
     RefreshFiles();
     RefreshTree(null);
     this.DoubleBuffered = true;
     tabControl1.SelectedTab.Controls.Add(new DrawPanel());
     tabControl1.SelectedTab.Controls[0].Location = new Point(0, 0);
     tabControl1.SelectedTab.Controls[0].Size = new Size(tabControl1.SelectedTab.Width, tabControl1.SelectedTab.Height);
 }
Пример #2
0
        public Main()
        {
            InitializeComponent();
            Symbols = new List<Symbol>();
            Brokers = new List<Broker>();
            Params = new Parameters();
            isClosing = false;

            LoadConfig();

            selectedBroker = null;

            listSymbols.Enabled = false;
            comboBox1.Enabled = false;
            AddSymbol.Enabled = false;
            RemoveSymbol.Enabled = false;

            RefreshBrokerList();
            RefreshSymbols();
            RefreshStatus();
            View = new Viewer(Params);
        }