Example #1
0
        private void showToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Data.ConfigurationFactory factory = tvConfigurations.SelectedNode.Tag as Data.ConfigurationFactory;
            Common.Configuration.SimulatorConfiguration configuration = _controller.GetConfiguration(factory.Id);

            ConfigurationView view = new ConfigurationView();

            view.Text = "Configuration " + factory.Name;
            view.Display(configuration);
            view.Show(this.FindForm());
        }
Example #2
0
        public void Run(bool startMinimized = false)
        {
            load();

            _tray.Create(@"Textsmile.net", new TrayContextMenu(onTrayExitClicked));
            _tray.Tray.Click       += onTrayClick;
            _tray.Tray.DoubleClick += onTrayDoubleClick;

            _configView.Show();
            if (startMinimized)
            {
                _configView.WindowState = WindowState.Minimized;
            }
            else
            {
                _configView.WindowState = WindowState.Normal;
                _configView.Activate();
            }

            _hotKeyManager.KeyPressed += onHotKeyManagerKeyPressed;
            _smiles.SmileClicked      += onSmileClickRaised;
            _smiles.SmileRemoved      += onSmileRemoveRaised;
        }
        public void Show(uint show)
        {
            switch (show)
            {
            case SW_HIDE:
            {
                ConfigurationView.Hide();
                break;
            }

            case SW_SHOW:
            case SW_SHOWNORMAL:
            {
                ConfigurationView.Show();
                break;
            }

            default:
            {
                break;
            }
            }
        }