Ejemplo n.º 1
0
 private void listBox1_DoubleClick(object sender, EventArgs e)
 {
     if (listBox1.SelectedItem != null)
     {
         LogEvent le = (LogEvent)listBox1.SelectedItem;
         if (le.Module != null)
         {
             if (le.Module.GetUserInterface() != null)
             {
                 try
                 {
                     DynamicUserControl uc = le.Module.GetUserInterface();
                     if (uc != null)
                     {
                         DynamicForm f = new DynamicForm();
                         f.Size = new System.Drawing.Size(640, 480);
                         f.Text = le.Module.Adapter.GetAdapterInformation().Name + " - " + le.Module.MetaData.GetMeta().Name + " " + le.Module.MetaData.GetMeta().Version;
                         f.Controls.Add(uc);
                         f.Show();
                         f.ThemeChanged();
                     }
                 }
                 catch (Exception ne)
                 {
                     LogCenter.Instance.LogException(ne);
                 }
             }
         }
     }
 }
Ejemplo n.º 2
0
        private void btnDynamic_Click(object sender, EventArgs e)
        {
            DynamicForm df = new DynamicForm();

            df.Show();
            Hide();
        }
Ejemplo n.º 3
0
        private void buttonConfig_Click(object sender, EventArgs e)
        {
            DynamicForm f = new DynamicForm();

            f.Text   = ai.Name;
            f.Width  = 640;
            f.Height = 480;
            f.Controls.Add(new ModuleConfiguration(ai.Adapter)
            {
                Dock = DockStyle.Fill
            });
            f.Show();
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Builds the module Help window
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonHelp_Click(object sender, EventArgs e)
 {
     try
     {
         DynamicForm f = new DynamicForm();
         f.Size = new System.Drawing.Size(640, 480);
         f.Text = "Help";
         Help uc = new Help(checkedListBoxModules.SelectedItem);
         uc.Dock = DockStyle.Fill;
         f.Controls.Add(uc);
         f.Show();
         f.ThemeChanged();
     }
     catch (Exception ne)
     {
         LogCenter.Instance.LogException(ne);
     }
 }
Ejemplo n.º 5
0
 private void buttonOpenConfiguration_Click(object sender, EventArgs e)
 {
     try
     {
         DynamicUserControl uc = na.Modules.GetModule(checkedListBoxModules.SelectedIndex).GetUserInterface();
         if (uc != null)
         {
             DynamicForm f = new DynamicForm();
             f.Size = new System.Drawing.Size(640, 480);
             f.Text = na.GetAdapterInformation().Name + ": " + na.Modules.GetModule(checkedListBoxModules.SelectedIndex).MetaData.GetMeta().Name + " - " + na.Modules.GetModule(checkedListBoxModules.SelectedIndex).MetaData.GetMeta().Version;
             f.Controls.Add(uc);
             f.Show();
             f.ThemeChanged();
         }
     }
     catch (Exception ne)
     {
         LogCenter.Instance.LogException(ne);
     }
 }
Ejemplo n.º 6
0
 private void buttonConfig_Click(object sender, EventArgs e)
 {
     DynamicForm f = new DynamicForm();
     f.Text = ai.Name;
     f.Width = 640;
     f.Height = 480;
     f.Controls.Add(new ModuleConfiguration(ai.Adapter) { Dock = DockStyle.Fill });
     f.Show();
 }
Ejemplo n.º 7
0
 private void listBox1_DoubleClick(object sender, EventArgs e)
 {
     if (listBox1.SelectedItem != null)
     {
         LogEvent le = (LogEvent)listBox1.SelectedItem;
         if (le.Module != null)
         {
             if (le.Module.GetUserInterface() != null)
             {
                 try
                 {
                     DynamicUserControl uc = le.Module.GetUserInterface();
                     if (uc != null)
                     {
                         DynamicForm f = new DynamicForm();
                         f.Size = new System.Drawing.Size(640, 480);
                         f.Text = le.Module.Adapter.GetAdapterInformation().Name + " - " + le.Module.MetaData.GetMeta().Name + " " + le.Module.MetaData.GetMeta().Version;
                         f.Controls.Add(uc);
                         f.Show();
                         f.ThemeChanged();
                     }
                 }
                 catch (Exception ne)
                 {
                     LogCenter.Instance.LogException(ne);
                 }
             }
         }
     }
 }
Ejemplo n.º 8
0
 private void buttonOpenConfiguration_Click(object sender, EventArgs e)
 {
     try
     {
         DynamicUserControl uc = na.Modules.GetModule(checkedListBoxModules.SelectedIndex).GetUserInterface();
         if (uc != null)
         {
             DynamicForm f = new DynamicForm();
             f.Size = new System.Drawing.Size(640, 480);
             f.Text = na.GetAdapterInformation().Name + ": " + na.Modules.GetModule(checkedListBoxModules.SelectedIndex).MetaData.GetMeta().Name + " - " + na.Modules.GetModule(checkedListBoxModules.SelectedIndex).MetaData.GetMeta().Version;
             f.Controls.Add(uc);
             f.Show();
             f.ThemeChanged();
         }
     }
     catch (Exception ne)
     {
         LogCenter.Instance.LogException(ne);
     }
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Builds the module Help window
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonHelp_Click(object sender, EventArgs e)
 {
     try
     {
         DynamicForm f = new DynamicForm();
         f.Size = new System.Drawing.Size(640, 480);
         f.Text = "Help";
         Help uc = new Help(checkedListBoxModules.SelectedItem);
         uc.Dock = DockStyle.Fill;
         f.Controls.Add(uc);
         f.Show();
         f.ThemeChanged();
     }
     catch (Exception ne)
     {
         LogCenter.Instance.LogException(ne);
     }
 }