コード例 #1
0
 public static RootWindow GetWindow()
 {
     if (mInstance == null)
     {
         mInstance = new RootWindow();
     }
     return(mInstance);
 }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            OracleDatabase od  = OracleDatabase.GetInstance();
            string         sql = "user id=" + username.Text
                                 + ";password="******";data source=" + dataSource.Text;

            if (od.Connect(sql))
            {
                MessageBox.Show("Success!");
                RootWindow wd = RootWindow.GetWindow();

                wd.CreateSession();
            }
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: mnhlt/FlightTicketManager
 private static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(RootWindow.GetWindow());
 }