コード例 #1
0
 public RadForm2(RadForm1 Radform1)
 {
     InitializeComponent();
     this.Radform1Ref        = Radform1;
     this.Text               = "Add Restaurant";
     priceAddList.DataSource = RadForm1.priceList;
 }
コード例 #2
0
 public RadForm5(RadForm1 Radform1, int r)
 {
     InitializeComponent();
     this.Radform1Ref = Radform1;
     this.Text        = "Random Restaurant";
     this.r           = r;
 }
コード例 #3
0
 public RadForm4(RadForm1 Radform1)
 {
     InitializeComponent();
     this.Radform1Ref         = Radform1;
     this.Text                = "Edit Restaurant";
     priceEditList.DataSource = RadForm1.priceList;
 }
コード例 #4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //show splash
            Thread splashThread = new Thread(new ThreadStart(
                                                 delegate
            {
                splashForm = new SplashForm();
                Application.Run(splashForm);
            }
                                                 ));

            splashThread.SetApartmentState(ApartmentState.STA);
            splashThread.Start();

            //run form - time taking operation
            RadForm1 mainForm = new RadForm1();

            mainForm.Load += new EventHandler(mainForm_Load);
            Application.Run(mainForm);
        }