예제 #1
0
 void kMenu_FireEvent(object sender, KComponents.KMenuArgs e)
 {
     if (e.Key == Config.KEYOPEN)
     {
         this.OpenNewDrawing();
     }
 }
예제 #2
0
파일: KMenu.xaml.cs 프로젝트: tingxin/Kiosk
        void gdItem_TouchUp(object sender, TouchEventArgs e)
        {
            Grid gd = sender as Grid;

            this.RevertImage(gd, "_on.png");
            KMenuItem item = gd.Tag as KMenuItem;

            this.ChangeStatus(this.gdOpen);
            if (this.FireEvent != null)
            {
                KMenuArgs arg = new KMenuArgs(item.Id);
                this.FireEvent(this, arg);
            }
        }