예제 #1
0
        Festival2 topWindow;    // 상단 윈도우 [7/2/2014 Mark]

        public Festival()
        {
            InitializeComponent();

            topWindow = new Festival2();    // 상단 윈도우 출력 [7/2/2014 Mark]
            topWindow.Show();
        }
예제 #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            topWindow = new Festival2();    // 상단 윈도우 출력 [7/2/2014 Mark]
            topWindow.Show();

            Assembly executingAssembly = Assembly.GetExecutingAssembly();

            string filename1 = string.Format("{0}{1}", this.GetType().Namespace, ".res.tap_remains2.jpg");
            string filename2 = string.Format("{0}{1}", this.GetType().Namespace, ".res.tap_remains1.jpg");
            string filename3 = string.Format("{0}{1}", this.GetType().Namespace, ".res.tap_relic2.jpg");
            string filename4 = string.Format("{0}{1}", this.GetType().Namespace, ".res.tap_relic1.jpg");

            img_Tap1_off = MakeBitmap(executingAssembly, filename1);
            img_Tap1_on  = MakeBitmap(executingAssembly, filename2);
            img_Tap2_off = MakeBitmap(executingAssembly, filename3);
            img_Tap2_on  = MakeBitmap(executingAssembly, filename4);

            image_tap1.Source = img_Tap1_on;
            image_tap2.Source = img_Tap2_off;

            BoardRefresh();
        }