Пример #1
0
        protected override void OnClick()
        {
            if (m_schematicTarget != null && m_schematicTarget.SchematicTarget != null && m_schematicTarget.SchematicTarget.IsEditingSchematicDiagram())
            {
                if (m_schematicInMemoryDiagram == null)
                {
                    m_schematicInMemoryDiagram = m_schematicTarget.SchematicTarget.SchematicInMemoryDiagram;
                }

                if (m_schematicInMemoryDiagram != null)
                {
                    if (m_formAuto == null)
                    {
                        m_formAuto = new FormAutoRefresh();
                        try
                        {
                            m_formAuto.InitializeSecond();
                            m_formAuto.InitializeMinute();
                        }
                        catch (Exception e)
                        {
                            System.Windows.Forms.MessageBox.Show(e.Message);
                        }
                    }
                    m_formAuto.SetSchematicInmemoryDiagram(m_schematicInMemoryDiagram);
                    m_formAuto.Appli = m_application;

                    m_formAuto.Show();
                }
            }
        }
		protected override void OnClick()
		{
			if (m_schematicTarget != null && m_schematicTarget.SchematicTarget != null && m_schematicTarget.SchematicTarget.IsEditingSchematicDiagram())
			{
				if (m_schematicInMemoryDiagram == null)
					m_schematicInMemoryDiagram = m_schematicTarget.SchematicTarget.SchematicInMemoryDiagram;

				if (m_schematicInMemoryDiagram != null)
				{
					if (m_formAuto == null)
					{
						m_formAuto = new FormAutoRefresh();
						try
						{
							m_formAuto.InitializeSecond();
							m_formAuto.InitializeMinute();
						}
						catch (Exception e)
						{
							System.Windows.Forms.MessageBox.Show(e.Message);
						}
					}
					m_formAuto.SetSchematicInmemoryDiagram(m_schematicInMemoryDiagram);
					m_formAuto.Appli = m_application;

					m_formAuto.Show();
				}
			}
		}