Exemplo n.º 1
0
 public ChooseSearchColumnsFrame()
 {
     InitializeComponent();
     //btnUncheckAll.Image = ImageTool.CombineImages(CoreIcons.checkall, CoreIcons.delete_overlay);
     Translating.TranslateControl(this);
     Disposed += new EventHandler(ChooseSearchColumnsFrame_Disposed);
     ClosedOk  = false;
 }
Exemplo n.º 2
0
 public QueryDesignTableFrame(ITableStructure table, QueryDesignFrame frame, string objtype)
 {
     InitializeComponent();
     SaveId = Guid.NewGuid().ToString();
     Translating.TranslateControl(this);
     m_table    = table;
     m_frame    = frame;
     ObjectType = objtype;
     FillData();
 }
Exemplo n.º 3
0
 public SqlDumpWriterEditFrame()
 {
     InitializeComponent();
     Translating.TranslateControl(this);
     foreach (var item in DialectAddonType.Instance.CommonSpace.GetFilteredAddons(RegisterItemUsage.DirectUse))
     {
         m_dialectIndexes[item.Name] = cbxDialect.Items.Count;
         cbxDialect.Items.Add(item);
     }
     cbxDialect.SelectedIndex = 0;
 }
Exemplo n.º 4
0
        public QueryDesignTableFrame(XmlElement xml, QueryDesignFrame frame)
        {
            InitializeComponent();
            Translating.TranslateControl(this);
            m_frame = frame;
            var tbl = new TableStructure(xml.FindElement("Structure"));

            tbl.Parent = new DatabaseStructure();
            foreach (XmlElement rx in xml.SelectNodes("Reference"))
            {
                var fk = new ForeignKey(rx.FindElement("ForeignKey"));
                fk.SetDummyTable(NameWithSchema.LoadFromXml(rx));
                tbl.AddReference(fk);
            }
            m_table = tbl;
            this.LoadPropertiesCore(xml);
            FillData();
        }
Exemplo n.º 5
0
 public DockerWrapper(IDockerFactory factory)
 {
     InitializeComponent();
     m_factory = factory;
     m_docker  = m_factory.CreateDocker();
     m_control = m_docker.DockerControl;
     m_frame   = m_control as ContentFrame;
     if (m_frame != null)
     {
         m_frame.m_dockWrapper = this;
     }
     Controls.Add(m_control);
     Translating.TranslateControl(m_control);
     m_control.Dock = DockStyle.Fill;
     Text           = Texts.Get(m_factory.MenuTitle);
     Icon           = Icon.FromHandle(new Bitmap(m_factory.Icon).GetHicon());
     //this.HideOnClose = true;
     PerformLayout();
 }
Exemplo n.º 6
0
 public void SetBindings(ITabularDataStore source, ITabularDataStore target)
 {
     if (m_frmvar != null)
     {
         ((UserControl)m_frmvar).Dispose();
     }
     if (target.AvailableRowFormat)
     {
         ColumnMapFrame_FixedTarget frmvar = new ColumnMapFrame_FixedTarget();
         panel1.Controls.Add(frmvar);
         frmvar.Dock = DockStyle.Fill;
         m_frmvar    = frmvar;
         frmvar.SetBindings(source, target);
     }
     else
     {
         ColumnMapFrame_VarTarget frmvar = new ColumnMapFrame_VarTarget();
         panel1.Controls.Add(frmvar);
         frmvar.Dock = DockStyle.Fill;
         m_frmvar    = frmvar;
         frmvar.SetBindings(source, target);
     }
     Translating.TranslateControl(this);
 }
Exemplo n.º 7
0
        public ConnWizardForm(IStoredConnection conn)
        {
            InitializeComponent();
            m_conn = conn;

            int top  = ClientSize.Height - (btnOk.Top + btnOk.Height);
            int left = ClientSize.Width - (btnOk.Left + btnOk.Width);
            int wi   = ClientSize.Width - 2 * left;

            var tun = m_conn as ITunellableStoredConnection;

            var        parent = Controls;
            TabControl pg     = null;

            if (tun != null)
            {
                pg = new TabControl();
                var pg1 = new TabPage {
                    Text = Texts.Get("s_connection")
                };
                var pg2 = new TabPage {
                    Text = Texts.Get("s_tunnelling")
                };
                pg.TabPages.Add(pg1);
                pg.TabPages.Add(pg2);
                pg.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
                Controls.Add(pg);

                pg.Top   = top;
                pg.Width = wi;
                pg.Left  = left;

                m_tunCfg = new TunnelConfigFrame();
                m_tunCfg.AllowDirectConnection  = tun.AllowDirectConnection;
                m_tunCfg.SelectedDriver         = tun.TunnelDriver;
                m_tunCfg.SelectedDriverChanged += new EventHandler(m_tunCfg_SelectedDriverChanged);
                pg2.Controls.Add(m_tunCfg);
                m_tunCfg.Dock = DockStyle.Fill;

                parent = pg1.Controls;
                top    = 10;
                left   = 10;
                wi     = pg.Width - 20;

                pg.SelectedIndexChanged += pg_TabIndexChanged;
            }

            m_frame = m_conn.CreateEditor();
            parent.Add(m_frame);
            m_frame.Left  = left;
            m_frame.Top   = top;
            m_frame.Width = wi;

            m_common = new CommonConnectionEditFrame(conn);
            parent.Add(m_common);
            m_common.Left  = left;
            m_common.Top   = m_frame.Height + top;
            m_common.Width = wi;

            m_common.LinkToSpecific(m_frame);

            Height = top + Height + m_frame.Height + m_common.Height + (tun != null ? 50 : 0);
            if (pg != null)
            {
                pg.Height = m_frame.Height + m_common.Height + 50;
            }

            Text = Texts.Get(m_conn.ConnectionTypeTitle);
            Translating.TranslateControl(this);
            btnAdvanced.Enabled = conn.ConnectionSettings != null;
            btnCtxhelp.Enabled  = m_conn.HelpTopic != null;
            Usage["contype"]    = conn.GetType().FullName;

            m_origHeight = Height;
            m_origWidth  = Width;
        }
Exemplo n.º 8
0
 void FormEx_Load(object sender, EventArgs e)
 {
     Translating.TranslateControl(this);
 }
Exemplo n.º 9
0
        //IFilePlace m_name;
        //ExtendedFileName m_name = new ExtendedFileName();

        public FileNameEditorFrame()
        {
            InitializeComponent();
            Translating.TranslateControl(this);
            this.Disposed += new EventHandler(FileNameEditorFrame_Disposed);
        }
Exemplo n.º 10
0
 private void ContentFrame_Load(object sender, EventArgs e)
 {
     Translating.TranslateControl(this);
 }
Exemplo n.º 11
0
 public DataErrorFrame()
 {
     InitializeComponent();
     Translating.TranslateControl(this);
 }