コード例 #1
0
ファイル: MainForm.cs プロジェクト: weedkiller/SqlToCSharp
 /// <summary>
 /// Configures the form on load.
 /// </summary>
 private void FormLoad()
 {
     LoadData();
     this.dbTreeView.LoadTreeView(this.dbObjects, AppStatic.Server, AppStatic.Database);
     creator            = null;
     tabControl.Visible = false;
 }
コード例 #2
0
        /// <summary>
        ///     Generate Simple Typed Datatable menu-item click evennt handler.
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="e">Event Argument.</param>
        private void GenerateSimpleTypedDatatableToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                tabPage1.Text = @"Simple Typed Datatable";

                _creator = null;

                _creator = new TypedDatatableCreator();
                classGeneratorSetting.ApplySettings();
            }
            catch (Exception ex)
            {
                ErrorViewerForm.ShowError(ex, this);
            }
        }
コード例 #3
0
        /// <summary>
        ///     Generate C# Class menu-item click event handler.
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="e">Event Argument.</param>
        private void PocoGenerateMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                tabPage1.Text = @"C# Class";

                _creator = null;

                _creator = new CSharpClassCreator();
                classGeneratorSetting.ApplySettings();
            }
            catch (Exception ex)
            {
                ErrorViewerForm.ShowError(ex, this);

                throw;
            }
        }